Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to assign line per page for direct print?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01366538
Message ID:
01366596
Vues:
14
>VFP9 sp2
>I printed some report with this code ....
>
>
>SET PRINTER TO
>
>SET DEVICE TO PRINTER
>
>SET PRINT FONT "MS Sans Serrif", 8
>
>@ 1,1 SAY "test prining"
>
>@ 2,1 SAY "print font MS Sans Serrif"
>
>SET DEVICE TO SCREEN
>
>SET PRINTER TO
>
>It ok,but the print have feed over.How to stop printer feed or assign line per page?
>Thank you for all tip.

When you use @ SAY to display items on the printer if the next row number is less than the previous then VFP will do a page feed to get to the lower line number. You are better off using ?, ?? , and ??? to output to the printer as they don't use line numbers and just prints to the current line. The ? preceeds the output wiht a carriage return and ine feed while the ?? does not. The ??? is used to send control codes to the printer and causes VFP to not use the printer driver so the control codes can be sent directly to the printer unaltered by the printer driver.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform