Re: Printing in VB .NET on Pocket PC

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Paul & Ginny,

I just wanted to thank you for all your help. I'm actually still waiting for
the bluetooth card for the HP printer so I haven't been able to test it.

Thanks again,

Alex


"Milsnips" wrote:

Ok, i'll give that a go and see how i come along.
Thanks for your help.

regards,
Paul

"Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx> wrote in message
news:D27E473A-71D5-4A38-8379-F4B7B3FF0681@xxxxxxxxxxxxxxxx
Paul,

You need to use printer specific codes to turn the barcode printing on and
off, but once you know what the output stream is supposed to look like,
you just send that out the port like you do your regular text.

--
Ginny


"Milsnips" <milsnips@xxxxxxxxxxx> wrote in message
news:O5Lej8IbHHA.4616@xxxxxxxxxxxxxxxxxxxxxxx
Hey Ginny,

While i'm still on the topic, i am currently printing only text files,
but i'd like to incorporate barcode image or/and company logo image into
my printouts (eg. invoice with company logo on top and scannable barcode
on the bottom).

I guess this depends on the printer's support for printing graphics,
which i think most of the Epxon LX printers can print out.
Any ideas on how i'd go about passing a graphic to be printed via serial
port?

thanks,
Paul

"Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx> wrote in
message news:F1416BB9-5D3D-49D3-897D-0D87FEAD95A8@xxxxxxxxxxxxxxxx
Paul,

Yes, very important. I usually just delay maybe 100 ms after each line,
but in any case, it is possible to overrun the buffer on all the
printers I've tried.

--
Ginny


"Milsnips" <milsnips@xxxxxxxxxxx> wrote in message
news:uiVZX5HbHHA.3272@xxxxxxxxxxxxxxxxxxxxxxx
Yes Ginny, i forgot to mention that. Im using a BlueTake BT200 blutooth
printer adapter (32k cache) connected to an Epson LX300+ (i think 4kb
or 8kb cache) so if the file i'm sending is larger than what the cache
can handle, i add the line:

Threading.Sleep(1000) //sleep for 1 second after it has passed x bytes
of datatransfer, then i reset that counter and continue

regards,
Paul

"Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx> wrote in
message news:98627B80-9AF6-4C32-86D1-CC70879DA6CF@xxxxxxxxxxxxxxxx
Alex,

As Paul says, it works fine. Bluetooth printers appear as serial
devices. The main difference I find with Bluetooth printers is that I
need to delay somewhat longer after printing each line to allow the
printer to keep up.

--
Ginny


"Alex" <Alex@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7CC5291D-49C1-46C1-8847-CD188D6521B1@xxxxxxxxxxxxxxxx
Hi Ginny,

Thanks for your reply. I'll look into the PrinterCE software. I was
thinking
more like a Bluetooth printer connected to a PDA. I guess there is no
way to
do this directly from VB?

Thanks,

Alex


"Ginny Caughey [MVP]" wrote:

Alex,

It sounds like you found a solution for the desktop, not for a
PocketPC.

The easiest way I've found to print to a specific printer connected
by some
sort of serial connection is to use the SerialPort class to send the
output
to that printer. (You just write a line at a time from the text
file.) For
support for a range of printers, there is a 3rd party product called
PrinterCE from FieldSoft that is popular.

--
Ginny


"Alex" <Alex@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:15FC1F8C-C09B-4B78-951F-FEDE0E0E11E1@xxxxxxxxxxxxxxxx
Hello,

I'm writing an application in VB .NET to run on a Pocket PC Device
(HP
iPaq)
and at one point, it's supposed to print a text file. After
searching the
Internet, I found that I should use
System.Drawing.Printing.PrintDocument
for
printing.

Apart from the fact that I'm not quite sure how to use
PrintDocument, I
haven't been able to experiment at all, because I can't even find
System.Drawing.Printing . It says that the namespace cannot be
found.

Is there something I should import or add to the project
properties to
make
the Printing object accessible? I don't suppose anybody would have
any
code
samples on how to use PrintDocument on a Pocket PC application?

Any help will be greatly appreciated! Thanks in advance,

Alex












.



Relevant Pages

  • Re: Printing in VB .NET on Pocket PC
    ... cache) so if the file i'm sending is larger than what the cache can handle, ... somewhat longer after printing each line to allow the printer to keep up. ... sort of serial connection is to use the SerialPort class to send the ... I'm writing an application in VB .NET to run on a Pocket PC Device (HP ...
    (microsoft.public.dotnet.framework.compactframework)
  • .NET 2 CF WM5 Bluetooth trouble
    ... I there is a Bluetooth manager on the PDA that shows me two COM ports ( ... COM7 Incoming port and COM8 Outgoing port). ... My code can "discover" the Bluetooth radio device and connect. ... but cannot get any of my serialPort receive ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Hp blue tooth
    ... The printing process stops after 1/0 page ... would expect an error message to appear when it happened. ... I can print to my HP 450 via Bluetooth from my Mac PowerBook only a couple ...
    (comp.sys.hp.hardware)
  • Re: Serialport issue?
    ... I had trouble with a delay after opening the serial BlueTooth port, ... My simple test program uses one SerialPort class with settings:BaudRate ... private void pbClose_Click(object sender, EventArgs e) ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Hp blue tooth
    ... I tried to put the printer at a greaterlonger distance but no effect ... >> I use the portable inkket printer hp450wbt with bluetooth connection. ... > Your problem sounds like some kind of time-out in the comm link, ... > print monitor window open while printing, there might be a message there. ...
    (comp.sys.hp.hardware)