Results 1 to 6 of 6

Thread: Printing From Pocket PC

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    7

    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

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    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
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    7

    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

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Printing From Pocket PC

    What happens when you run it? Do you get an error, and if so, what and on what line?

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    7

    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

  6. #6
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Printing From Pocket PC

    Hi,
    have you checked on the fieldsoftware site?

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width