Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Back to legacy flat files
Message
From
15/10/1996 17:21:07
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00010068
Message ID:
00010113
Views:
34
>>
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform