Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting print mode (Landscape vs. Normal) programmatical
Message
De
03/10/2008 15:38:53
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01352664
Message ID:
01352678
Vues:
20
>>Hi,
>>does someone knows how to Set print mode (Landscape vs. Normal) programmaticaly?
>>
>>User don't want any kind of Dialog mode form to set it, want it to be automatic depending on the size of some text.
>>
>>Report is being printed using @SAY with font
>>
>>SET PRINTER FONT "Courier New", nTamFonte
>>SET COLOR TO RGB(0,0,0,255,255,255), RGB(0,0,0,255,255,255)]
>>@SAY....
>>
>>
>>Or has a VB code that I can change to VFP that does it.
>>
>>TIA
>> [ ]'s
>>Peter
>
>This works for me:
>* Landscape
>??? CHR(27)+'E' + CHR(27)+'&l1O'
>*portrait
>??? CHR(27)+'E' + CHR(27)+'&l0O'

Here it doesn't works...
Is a USB printer and when I try the code the printer stops.

I found another way:
oPrinterConfig = CREATEOBJECT("pageset.PrinterControl")
oPrinterConfig.ChngOrientationLandscape
... Report here

oPrinterConfig.ReSetOrientation
But it would like to know why it works for you and not for me the code you wrote...

Thanks

Peter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform