Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i set the Generic Printer to put condence mode,?
Message
De
15/05/1999 11:49:36
 
 
À
15/05/1999 07:59:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00219317
Message ID:
00219332
Vues:
17
Hi Ed,

Just to chip in as I like to know more on printing.
Is there any different with the ??? command when using it in Win9x and
Win NT ?
In order to use ??? command, do I had to set any other command first ?
like

SET DEVICE TO PRINTER
SET PRINTER TO LPT1
??? 'xxxxxxxx'

I had set the above command, but nothing is printed out unless
I issue a SET PRINTER TO

Is there any other thing that I need to know in order to print
the same stuff under Win9x and NT. I am using a generic text printer.
Do all the setting for printer applied in this case if I using a
receipt printer.

Your advise or help is very much appreciated. Thank you







>>I need to set the printer to condence mode, 5.5 inches page length ,etc.
>>I want to use the ESC /P2 printer control langueaje.
>>How can i do it???
>
>You'll have to embed the print codes directly in the output stream for the printer, and make certain that the Windows Print Driver for the selected printer is set to Generic/Text Only. Adding escape sequences to the output is fairly straightforward; for example, an Escape character is CHR(27). I don't know the specifics of your printer, so you'll have to figure out what the exact control sequences are; they are simple strings, which can be concatenated together using the + operator. For example, to tell an HP LaserJet II or compatible printer to switch to 12cpi printing, you'd send the following code:
>
>CHR(27)+'(s12H'
>
>You can string complex escape sequences together; the following switches an HP LaserJet to 10CPI, landscape orientation using the native Courier font from the bottom tray of a multi-tray laser:
>
>CHR(27) + '&l1X' + CHR(27) + '&l0O' + CHR(27) + '&l4H' + ;
> CHR(27) + '(s10H' + CHR(27) + '&l6D' + chr(27) + '(10U' + CHR(13)
>
>These escape sequences can be sent to the printer in a number of ways; you can embed the codes in a field in a report, or output directly to the printer using ??? (under Windows, switching between a report and ??? output can be problematic, since the Windows Spooler may see the change in method as the start of a new print job.)
>
>How are you creating the output?
Best Regards
Virusim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform