|
-
Jul 15th, 2007, 11:43 AM
#1
Thread Starter
New Member
Printing From Pocket PC
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
Last edited by si_the_geek; Jul 15th, 2007 at 12:14 PM.
Reason: removed email address
-
Jul 15th, 2007, 12:55 PM
#2
Frenzied Member
Re: Printing From Pocket PC
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
-
Jul 17th, 2007, 10:16 AM
#3
Thread Starter
New Member
Re: Printing From Pocket PC
Dear Mr. Pete
I was trying with PrinterCE, but it is not successful.
the code i used is :
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
Is it right?
Regards
Mohamed Faisel
-
Jul 17th, 2007, 10:19 AM
#4
Re: Printing From Pocket PC
What happens when you run it? Do you get an error, and if so, what and on what line?
-
Jul 17th, 2007, 10:22 AM
#5
Thread Starter
New Member
Re: Printing From Pocket PC
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
-
Jul 17th, 2007, 12:49 PM
#6
Frenzied Member
Re: Printing From Pocket PC
Hi,
have you checked on the fieldsoftware site?
Pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|