Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Map Objects - Printing
Message
From
08/03/2005 11:44:51
Todd Cottengim
Alpine Land Information Services
Redding, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Map Objects - Printing
Miscellaneous
Thread ID:
00993709
Message ID:
00993709
Views:
61
I have gleaned the following code from various forums in an attempt to print out of Map Objects in VFP8
Declare Integer CreateDC in Win32API ;
	String lpszDriver, ;
	String lpszDevice, ;
	String lpszOutput, ;
	String lpInitData

lcPrinterName = GetPrinter()

lnPrinterHDC = CreateDC("WINSPOOL",m.lcPrinterName,.NULL., .NULL.)

thisform.oleMap.OutputMap(lnPrinterHDC)
After selecting a printer, lnPrinterHDC is set to -1591670661 but nothing is actually sent to the printer.

ESRI, the manufacturer of MapObjects, does not provide any sample code from printing in VFP. Any help is greatly appreciated.

Todd.
Next
Reply
Map
View

Click here to load this message in the networking platform