I am using VB.NET (2003) for Pocket Pc Applications. Now I want to print a text file from VB.NET thru RS232 port (Route Printer O'neil RP1000).
Can somebody help me how to do this?
Best Regards
Mohamed Faisel
Printable View
I am using VB.NET (2003) for Pocket Pc Applications. Now I want to print a text file from VB.NET thru RS232 port (Route Printer O'neil RP1000).
Can somebody help me how to do this?
Best Regards
Mohamed Faisel
Hi,
either use the serial port control from www.opennetcf.org or www.hardandsoftware.com (Dick Grier) and write directly to the port, or use PrinterCE from www.fieldsoftware.com
Pete
Dear Mr. Pete
I was trying with PrinterCE, but it is not successful.
the code i used is :Is it right?Code:Dim objasciice As AsciiCE
Try
MessageBox.Show("Ready")
objasciice = New AsciiCE(AsciiCE.EXCEPTION_LEVEL.ABORT_JOB, "LICENSE_KEY")
objasciice.SelectPort(AsciiCE.ASCIIPORT.COM1)
objasciice.Text("Hello World")
objasciice.Text("Hello World")
objasciice.Text("Hello World")
MessageBox.Show("Ok")
objasciice.FormFeed()
objasciice.ClosePort()
Catch exc As PrinterCEException
objasciice.ShutDown()
MessageBox.Show("Asciice Exception", "Exception")
Finally
MessageBox.Show("123")
objasciice.ShutDown()
End Try
Regards
Mohamed Faisel
What happens when you run it? Do you get an error, and if so, what and on what line?
Thanks...
When I run the program.. the printer is getting response once. It is starting... but nothing is printing.. then the control comes back to the button.
What should I do?
best regards
Mohamed Faisel
Hi,
have you checked on the fieldsoftware site?
Pete