|
I already told you how. Prefix and Postfix sequences attached to the barcode.
|
|
|
|
|
Sorry , but these barcode readers cannot be configured to have a special character. Have no software that can use to configure these.
They only produce a list of chars and an "enter" at the end.
The only difference is that the barcode can produce much more chars at a small time compared with typing on keyboard. For that I hope to get some help to work on this idea because it seems is the only difference that these barcode have compared with a keyboard.
|
|
|
|
|
|
Thank you !
I've already read the article for RAW Input.
I've tested and can detect from which device the input came from.
But the problem remain because he detect both keyboard and Barcode reader as Keyboard1 and keyboad2. The problem is that how can I define in my application ? Because both keyboard and Barcode reader are USB , and when I will distribute my application , on one computer the barcode reader may be Keyboard 1 , on another may be Keyboard 2..? So this is a problem.
Do you have any suggestion ?
|
|
|
|
|
yeah, do a bunch of research. I can't do it for you. I simply don't have the time.
|
|
|
|
|
Hi there,
I have a one big prob.
I want to generate xml file with a specific format Like this syntax!:
<declarationrelevededuction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<identifiantfiscal>1088081
<annee>2016
<periode>8
<regime>1
<relevedeductions>
<rd>
<ord>1
<num>FF160400146
<des>PRESTATION
<mht>2400.00
<tva>480.00
<ttc>2880.00
<reff>
<if>52803595
<nom>LEADER SOFT
<ice>001540114000046
<tx>20.00
<mp>
<id>2
<dpai>2016-08-01
<dfac>2016-01-30
<rd>
<ord>2
<num>FF160400147
<des>PRESTATION
<mht>1500.00
<tva>300.00
<ttc>1800.00
<reff>
<if>52803595
<nom>LEADER SOFT
<ice>001540114000046
<tx>20.00
<mp>
So, I've created form with button to generate the xml files and I created this code for That:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim xmlsetting As New XmlWriterSettings
Dim writxml As XmlWriter = XmlWriter.Create("mytest.xml", xmlsetting)
Try
With writxml
.WriteStartDocument()
.WriteStartElement("DeclarationReleveDeduction")
.WriteStartElement("identifiantFiscal")
.WriteString("111111")
.WriteEndElement()
.WriteStartElement("annee")
.WriteString("2016")
.WriteEndElement()
.WriteStartElement("periode")
.WriteString("8")
.WriteEndElement()
.WriteStartElement("regime")
.WriteString("1")
.WriteEndElement()
.WriteStartElement("Relvededution")
For i As Integer = 1 To 10
.WriteStartElement("Id")
.WriteString(i)
.WriteStartElement("Nom")
.WriteString("Nom " & i)
.WriteEndElement()
.WriteStartElement("prenom")
.WriteString("Prenom " & i)
.WriteEndElement()
.WriteStartElement("Adresse")
.WriteString("Adresse " & i)
.WriteEndElement()
.WriteEndElement()
Next
.WriteEndElement()
.WriteEndElement()
.WriteEndDocument()
.Close()
End With
MsgBox("fichier a été généré avec succès", vbInformation)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
when I generated the xml file I have got like this format:
<declarationrelevededuction><identifiantfiscal>111111<annee>2016<periode>8<regime>1<relvededution><id>1<nom>Nom 1<prenom>Prenom 1<adresse>Adresse 1<id>2<nom>Nom 2<prenom>Prenom 2<adresse>Adresse 2<id>3<nom>Nom 3<prenom>Prenom 3<adresse>Adresse 3<id>4<nom>Nom 4<prenom>Prenom 4<adresse>Adresse 4<id>5<nom>Nom 5<prenom>Prenom 5<adresse>Adresse 5<id>6<nom>Nom 6<prenom>Prenom 6<adresse>Adresse 6<id>7<nom>Nom 7<prenom>Prenom 7<adresse>Adresse 7<id>8<nom>Nom 8<prenom>Prenom 8<adresse>Adresse 8<id>9<nom>Nom 9<prenom>Prenom 9<adresse>Adresse 9<id>10<nom>Nom 10<prenom>Prenom 10<adresse>Adresse 10
Please help me I need to do that in this days of current month 
|
|
|
|
|
One way is to create a strong typed class and just code to it. This method can create SOAP calls and WSDL files for transmitting or writing an API for. This is how I do it now.
<Serializable()>
Public Class ws_subscribersCount_Response
Private m_response_Code As String
Private m_response_Text As String
Private m_count As Integer
Public Property response_Code As String
Get
Return m_response_Code
End Get
Set(value As String)
m_response_Code = value
End Set
End Property
Public Property response_Text As String
Get
Return m_response_Text
End Get
Set(value As String)
m_response_Text = value
End Set
End Property
Public Property count As Integer
Get
Return m_count
End Get
Set(value As Integer)
m_count = value
End Set
End Property
End Class
To populate the object, just create a new one and transmit it back to the caller, or send it to an endpoint.
Dim subscribers as New ws_subscribersCount_Response()
subscribers.response_Code = "OK"
subscribers.response_Text = m_count & " subscribers have loaded successfully"
subscribers.count = m_count
Another way is to create a XSD file and use Xsd.Exe to convert it to a class and code against the class.
After the program creates a class file, you drop the class in your project. This is how I use to do it.
How to make an XSD file.
XML Schema Example[^]
After creating your XML class to to code against ...
You can read it from the disk drive
Create a new one and just transmit it
Write it to a disk drive.
Store it in a database
Dim writer As MemoryStream = Nothing
Dim XMLRequest As UPSRequest.AccessRequest
XMLRequest = New UPSRequest.AccessRequest
XMLRequest.AccessLicenseNumber = sUPSsi.AccessLicenseNumber
XMLRequest.UserId = sUPSsi.UserID
XMLRequest.Password = sUPSsi.Password
Dim serializer As XmlSerializer
serializer = New XmlSerializer(GetType(UPSRequest.AccessRequest))
writer = New MemoryStream()
serializer.Serialize(writer, XMLRequest)
writer.Position = 0
Dim request_serializer As XmlSerializer = Nothing
request_serializer = New XmlSerializer(GetType(UPSRequest.AccessRequest))
If (True = p_Write_Certification_Request) Then
Using request_writer As New StreamWriter(HttpContext.Current.Server.MapPath("~\Logs\UPS\"AccessRequest.xml"))
request_serializer.Serialize(request_writer, XMLRequest)
End Using
End If
|
|
|
|
|
We by new system HSAjet Mini Key ink jet printer for jobs. But Until now, we dont known to program a application by VB.NET to control it. Please help me a little information about document programe a new application by vb.net for connecting and control it. Thanks advance.
|
|
|
|
|
Google will find you many samples of printing from VB.NET.
|
|
|
|
|
Thank you for helping. But i dont know to transfer data to hsajet mini key. beacause will get data from hsajet mini key then print later.
|
|
|
|
|
Sorry, but that just does not make any sense.
|
|
|
|
|
Hello !
I have e vb.net project where m using a treeview.
I have a situation when for a specific node , I need the next or previous node , I mean according to position or order that each node has on the tree.
The existing properties NextnNode or PreviousNode , are not helping me because they are referring only to nodes inside a Nodes collection , and for example if the node is last child , NextNode return NULL.
I need general function for the entire Tree.
To be more clear :
For example :
N1
-N11
-N12
--N121
N2
-N21
-N22
In the above example , the Next node of N121 will be N2 , or the previous node of N2 will be N121. ( the tree may be full/partial collapsed or expanded )
Is there any property or function to do this ?
Thank you !
modified 14-Oct-16 19:45pm.
|
|
|
|
|
I think you misunderstand the node relationships. N121 does not have a next node, and the previous node of N2 is N1. If you want a different relationship tree then you would need to create it manually yourself.
|
|
|
|
|
I think you misunderstand what I wrote.
I know the node relationship , but I have a situation where I need to have Next and Previous working in that way.
So , since the actual existing Nextnode and Previousnode are not for this kind of situation , i need help te create new functions that works as i want.
|
|
|
|
|
No, I don't misunderstand. And, as I said in my previous message, if you want such a set of links, then you will need to create them yourself.
|
|
|
|
|
The TreeView contains a private nodeTable field that contains a hashtable with all the nodes. Instead of turning the tree into a list, it is advisable to learn to walk a tree. Do to do, you'll need recursion.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
There's nothing built-in, but it's fairly simple to write your own:
Public Shared Function FindNextNode(ByVal node As TreeNode) As TreeNode
If node Is Nothing Then Throw New ArgumentNullException("node")
If node.GetNodeCount(False) <> 0 Then
Return node.Nodes(0)
End If
While node IsNot Nothing
Dim nextNode As TreeNode = node.NextNode
If nextNode IsNot Nothing Then Return nextNode
node = node.Parent
End While
Return Nothing
End Function
Public Shared Function FindPreviousNode(ByVal node As TreeNode) As TreeNode
If node Is Nothing Then Throw New ArgumentNullException("node")
Dim result As TreeNode = node.PrevNode
If result Is Nothing Then
result = node.Parent
Else
Dim childCount As Integer = result.GetChildCount(False)
While childCount <> 0
result = result.Nodes(childCount - 1)
childCount = result.GetChildCount(False)
End While
End If
Return result
End Function
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Dear All,
Can you share a program using VB6 for access and post data web service?
Thanks
|
|
|
|
|
|
Google is your friend. Go there and type "vb6 post web service" and start reading. You'll find a bunch of examples.
|
|
|
|
|
Good afternoon All,
I want ask something about MySQL, I have a system that made by Visual Studio 2010 n MySQL. Everytime I ran that application, sometimes appear an error "Too Many Connections". How can i handle that error. Anyone can help me please..
Thx,
HR
|
|
|
|
|
Make sure you are closing your connections as soon as you have finished using them.
|
|
|
|
|
Dear Richard,
thanks for your suggestion. The Application can be run normally now.
regards,
Hermawan 
|
|
|
|
|
Redesign your application so all your database requests/connections go through the single class.
Oh an close THE connection when you have finished with it!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Ok holmes, Its have been run normally now. Thanks for your suggestion. 
|
|
|
|