[AccessD] Printing to a directly generic text printer

Lawrence Mrazek lmrazek at lcm-res.com
Mon May 14 10:36:41 CDT 2007


Thanks Gustav:

That works better than my code. Since I'm sending directly to the printer,
could this interfere with a document that was currently printing from
another user/application?

Larry Mrazek
LCM Research, Inc.
www.lcm-res.com
lmrazek at lcm-res.com
ph. 314-432-5886
mobile: 314-496-1645

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Monday, May 14, 2007 10:06 AM
To: accessd at databaseadvisors.com
Subject: Re: [AccessD] Printing to a directly generic text printer

Hi Larry

We've used:

Dim PrtStr As String
PrtStr = "Printer Test Text llllllllllllllllllllllllllllllllllll"
Open "\\HPLaptop\HPOFFICEJET" For Output As #1 Print #1, PrtStr Close #1

with an Axiohm printer.

/gustav

>>> lmrazek at lcm-res.com 14-05-2007 16:45:56 >>>
Hi:

Due to an incompatibility between a Windows Printer drive and a barcode
label printer's configuration, it looks like I'm going to have to have an
application print directly to the printer using ZPL II language. I've
figured out that I can install the label printer as a Generic Text Printer,
then send the data directly, I can successfully create a barcode. Since my
application will be sharing the barcode printer with another (much more
important) application, I need to make sure that my app plays nicely. 

I'm using the following code (found some examples on the net) to test:

Dim PrtStr As String
PrtStr = "Printer Test Text llllllllllllllllllllllllllllllllllll"
Open "\\HPLaptop\HPOFFICEJET" For Random As #1 Put #1, , PrtStr Close #1


(\\HPLaptop\HPOFFICEJET) is my local printer I'm using for testing.
Actual output printed is: 6Printer Test Text
llllllllllllllllllllllllllllllllllll

Has anyone else done this, or have any suggestions on how to make this
better?

Thanks in advance. 

Larry Mrazek
LCM Research, Inc.
www.lcm-res.com
lmrazek at lcm-res.com
ph. 314-432-5886
mobile: 314-496-1645


--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com





More information about the AccessD mailing list