Delphi/Pascal >> Print to a USB printer (newbie)

by Nektarios - Greece » Sat, 01 Jul 2006 15:43:36 GMT

I have a program that it does some math to calculate some real variables.
I want the user to press a button and print these values of these
variables with some info text as a string.
The printer might be connected to LPT or USB port.
I couldn't find anywhere some code about this.
Any help please ?


==================================================================

Example of print report :

------------------------
Name of Application
------------------------

Some text as string...

The results are :
A = 34.3445
B = 1,200
N = 1
K = 1.3452

------------------------
END OF PRINT

==================================================================

Delphi/Pascal >> Print to a USB printer (newbie)

by Andreas Koch » Sat, 01 Jul 2006 16:01:29 GMT



Look up "printer" in the Delphi help, there should be
an example, too.

Printer.begindoc;
printer.canvas.textout(32,32,'The Results are...');
Printer.enddoc;


As long as the printer is installed and has a windows Driver http://9573f00jrksyaq7x-fvlpkrrco.hop.clickbank.net/?tid=DATABASEFORUM " target="_top" rel="nofollow">[Driver Robot fixes your driver problems] (so you can
print to it from word etc. too), it doesn't matter if its connected to
LPT or USB or Network.

Similar Threads

1. convert a USB printer to a network printer?

Is there some kind of adapter I can buy which will allow me to take my
USB printer and use it as a network printer?

(A chickenhawk has been sacrificed to Allah)


-- 


-- 
borland.public.off-topic exists as a runoff for unwanted posts in the
technical groups. Enforcement of rules is deliberately minimal but
Borland reserves the right to cancel posts at any time, for any
reason, without notice.

2. QR4 it takes area from printer predetermined when printing in another printer

3. Newbie - Printing to Zebra printer

I'm a newbie to .NET and Google.  I am trying to write a C#
application that prints a barcode label to a Zebra (thermal) printer. 
I am using the PrintDocument class (System.Drawing.Printing
namespace).  Though it prints to the printer, it only prints the
actual ZPL code (e.g. "^XA^LH05,...).  I've tried to switch to the
Generic /Text Only driver, but before it gets to my ZPL code, it
displays the error "The data area passed to a system call is too
small."  I noticed that I cannot even print a test page using this
driver.  I have W2K SP3.  I retrieved a pre-sp3 Driver.cab file and
tried swapping out the driver files that begin with TTY and UNI, but
that didn't work, either.

Can anyone help??

Thanks

4. Necessity of printer friendly version link (was: newbie: how to create a print link)

5. newbie question: printer (2235c) from DTC to print server

Hello,

I want to use a printer currently attached to a DTC for network printing
attached to a print server like another one in our LAN.

I added device 203 to npconfig.pub.sys (the others are already running):

206 (network_address=10.0.0.142
pjl_supported=TRUE
banner_header=FALSE
banner_trailer=FALSE
jam_recovery=FALSE
setup_file=A4.HPENV.SYS)
205 (network_address=10.0.0.142
pjl_supported=TRUE
banner_header=FALSE
banner_trailer=FALSE
jam_recovery=FALSE
setup_file=A4.HPENV.SYS)
203 (network_address=10.0.0.140
pjl_supported=TRUE
banner_header=FALSE
banner_trailer=FALSE
jam_recovery=FALSE
setup_file=A4.HPENV.SYS)

I suppose I still must add another class via IOCONFIG, but I don know how
to handle this tool.

showdev gives this result:

.
.
.
201 J AVAIL
202 J AVAIL
203 J AVAIL
204 SPOOLED SPOOLER OUT
205 SPOOLED SPOOLER OUT
206 SPOOLED SPOOLER OUT
.
.
.
Can you give me some advice?

Thanks n advance

Armin Schwager


6. MacBook - Newbie: Need help on printing to XP shared printer

7. Newbie - Problem using printer through router with a built in print server

8. Newbie - Problem using printer through router with a built in print server