Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing to a canon Printer in FPD
Message
 
To
06/06/2001 12:18:07
Sammy Derban
Ghana Telecom
Accra, Ghana
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00515861
Message ID:
00517367
Views:
13
>Hello all,
>I have an old Foxpro for Dos program that prints a invoice okay on a dot matix printer.
>i use at say ...
>I now have to use a canon LBP-4u printer
>and i does not print within the margin. as though it need a
>wider paper.
>i don't have the DOS drivers.
>
>I guess i need to send some codes or so to the printier like this...
>e.g
>set print on
>?chr(15) + chr(27)
>set print off
>
>Any help on how to go about it?
>Thanks in advance.

This is what I found in some old driver for a LBP-8; maybe it is the same for the LBP-4 :
*** Init-code :

CHR(27)+";"+CHR(27)+"[?8h"+CHR(27)+"[?32h"+CHR(27)+"(' 1"                                           

*** Have some large font :

CHR(27)+"[0"+CHR(32)+CHR(75)                                               
Note that a Canon printer of this type is a lousy thing to control. Worst isn't possible ! (sorry Canon).

Send the above to the printer, preceeded with ??? " " (raw mode).
Don't use Set Printer On before this, or you may get anomalies (??? is just a printer-command already).

Sure hope this helps.
Previous
Reply
Map
View

Click here to load this message in the networking platform