Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Line feed dans une matricielle
Message
From
10/08/2007 12:33:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Line feed dans une matricielle
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01247430
Message ID:
01247430
Views:
57
Je veux imprimer un rapport directement a l'imprimante mais je veux controler la longueur de la page par line feed .
Mais quand j'imprime plusieurs pages j'ai toujours une decalage et a la fin apres le SET STEP TO l'imprimante imprime une autre page vide (c'est comme windows prend le controle et imprime le form feed .

Le code est un peut comme ca :

******************************
_padvance="linefeed"
cPrinter = GETPRINTER()
SET PRINTER TO NAME (cPrinter)

FOR lpage_printing = 1 TO lnbr_pages_to_print

SET PRINTER ON
SET CONSOLE OFF
SET PRINTER FONT 'Courier',10

? "This is the first line"
?
? "This is the third line"

SET PRINTER OFF

ENDFOR

SET PRINTER TO
SET CONSOLE ON

*******************************************
Reply
Map
View

Click here to load this message in the networking platform