Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change form to Legal and Letter programmatically
Message
De
17/03/2004 18:41:32
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00887285
Message ID:
00887338
Vues:
19
Sergey,

I found something interesting: It seems that the form size number that PRTINFO(2) is the same value that is stored in the report file as PAPERSIZE=x; so by making that value equal to 5 I can change the paper size to "Legal".

These size numbers seem to be a standard for Windows, and not printer dependent. At least that's what I guess from the following Visio help item in MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devref/HTML2/DAR_Properties_(O-P)_845.asp

Thanks,

Alex


>Alex,
>
>Open report as a table and in the first reocrd blank out TAG and TAG2 fields and change in Expr field
ORIENTATION=0
>to Landscape
>ORIENTATION=1
>>Hi,
>>
>>PRTINFO(2) is great because you can easily find a printer's current form type (Letter, Legal, etc). Is there a direct way to programmatically set the current form to Letter or Legal without resorting to the Win API?
>>
>>This is required so REPORT FORM PREVIEW shows completetely some very wide reports that normally are printed in landscape on legal paper.
>>
>>If there is no direct way, what would be the simplest way to do it with Win API? Please note that customers may have versions of Windows in different languages, so form names may be different.
>>
>>TIA,
>>
>>Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform