G
Genaro Sanchez
Hi, how can I print text files from the PocketPC?
I want the text file to be printed to a printer connected to a print server.
Also i want to know how to do this in .NET:
For example, i have this VB6 code:
Open sFileC For Output As #1
Print #1, Chr$(&H1B); "c4"; Chr$(2)
Print #1, "Date and time: " & Format(Date, "dd/MM/yyyy") & " " & Time
....
....
....
Print #1, Chr$(&H1D); "V"; Chr$(66); Chr$(0)
Close #1
When i try to do it in .NET, with StreamWriter, for example:
Dim objStreamWriter As StreamWriter
objStreamWriter = New StreamWriter(StartupPath & "\" & dNoComanda & "C.txt")
objStreamWriter.WriteLine(Chr$(&H1D); "V"; Chr$(66); Chr$(0))
objStreamWriter.Close()
There is an error. How can I do the same code in .NET.?
Thanks a lot.
I want the text file to be printed to a printer connected to a print server.
Also i want to know how to do this in .NET:
For example, i have this VB6 code:
Open sFileC For Output As #1
Print #1, Chr$(&H1B); "c4"; Chr$(2)
Print #1, "Date and time: " & Format(Date, "dd/MM/yyyy") & " " & Time
....
....
....
Print #1, Chr$(&H1D); "V"; Chr$(66); Chr$(0)
Close #1
When i try to do it in .NET, with StreamWriter, for example:
Dim objStreamWriter As StreamWriter
objStreamWriter = New StreamWriter(StartupPath & "\" & dNoComanda & "C.txt")
objStreamWriter.WriteLine(Chr$(&H1D); "V"; Chr$(66); Chr$(0))
objStreamWriter.Close()
There is an error. How can I do the same code in .NET.?
Thanks a lot.