Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where do I begin?
Message
 
To
12/12/2003 18:43:26
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00858831
Message ID:
00858936
Views:
17
Hi Calvin,

Speaking generally, modified DEVMODE data must be used to create a device context for the printer (CreateDC). And then draw something on this device context with GDI API functions:

StartDoc
StartPage
Escape
TextOut
BitBlt
StretchDIBits
SelectObject
EndPage
EndDoc
and more...

There is FoxPro example on my web site (members area):

Configuring DEVMODE structure for a printer
http://www.news2news.com/vfp/?example=384

API functions used in this code:
ClosePrinter
DeleteDC
DocumentProperties
GetActiveWindow
GetProfileString
OpenPrinter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform