Re: Printing in VB .NET on Pocket PC
- From: Alex <Alex@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 23 Mar 2007 07:10:03 -0700
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
- References:
- Re: Printing in VB .NET on Pocket PC
- From: Ginny Caughey [MVP]
- Re: Printing in VB .NET on Pocket PC
- From: Ginny Caughey [MVP]
- Re: Printing in VB .NET on Pocket PC
- From: Milsnips
- Re: Printing in VB .NET on Pocket PC
- From: Ginny Caughey [MVP]
- Re: Printing in VB .NET on Pocket PC
- From: Milsnips
- Re: Printing in VB .NET on Pocket PC
- From: Ginny Caughey [MVP]
- Re: Printing in VB .NET on Pocket PC
- From: Milsnips
- Re: Printing in VB .NET on Pocket PC
- Prev by Date: Re: DrawRoundRectangle
- Next by Date: Re: Bluetooth - Virtual Com Port
- Previous by thread: Re: Printing in VB .NET on Pocket PC
- Next by thread: Re: Menu while showing Notification
- Index(es):
Relevant Pages
|