>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 :
CHR(27)+";"+CHR(27)+"[?8h"+CHR(27)+"[?32h"+CHR(27)+"(' 1"
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.