Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Back to legacy flat files
Message
De
15/10/1996 17:21:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00010068
Message ID:
00010113
Vues:
38
>>
>>Did you consider the way to print text file using Windows API functions like TextOut and so on? It can work and you will not need in cursor or FRX.
>
>Edward, Do you have an example of this where I can choose paper orientation, font and pitch? This is how I would prefer to do it but I couldn't get the thing to work properly. If you know how please let me know.
>
>MTIA

I use this method printing from imaging applications (we use specific image formats not available for Fox/CR). Coding is really big and typically includes such API functions as:
TextOut - print text;
Rectangle - draw shape;
SetMapMode - set font point mode;
CreateFont - create specific print font;
SelectObject - change printing mode (font,pen, etc.)
and many other functions.
Check Windows SDK manual (VB set contains it) for function descriptions and be lucky. Actually, when I started to do this job I wasted a lot of paper trying different functions but, alas, it's the only way to get something.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform