Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Map Objects - Printing
Message
De
10/03/2005 17:27:07
Todd Cottengim
Alpine Land Information Services
Redding, Californie, États-Unis
 
 
À
08/03/2005 12:00:22
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00993709
Message ID:
00994666
Vues:
36
Thanks for the help Cetin but the problem still exists. I'm affraid that the OutputMap() and OutputMap2() functions in MapObjects may not be compatible with VFP.

In an e-mail fvrom ESRI, they suggested that the problem was with my ability to get a hDC for the printer, not with MapObjects. To prove that I was able to obtain the correct hDC for my printer, I add the following lines to my code after I populate lnPrinterHDC with a call to CreateDC() ...
** get the printer Hight and Width
Declare Integer GetDeviceCaps in Win32API ;
	integer hdc, ;
	integer nIndex

lnPrintWidth = GetDeviceCaps(lnPrinterHDC, 110)
lnPrintHeight = GetDeviceCaps(lnPrinterHDC, 111)
The variables lnPrintWidth and lnPrintHeight return 5100 and 6600 respectivly. Exaxtly what a printer printing on leter sized paper (8.5 x 11) at 600 dpi should return.

The problems appears to be with MapObject and the OutputMap() and OutputMap2() functions. I have replyed with the above code but they have yet to get back to me. I guess it is hurry up and wait time.

> from Cetin's orginal message
>Also I remember MO had ExportMap and PrintMap too (to file?).

Yes, both of those function do exisst. ExportMap() is to a file, and PrintMap(), which does work, is to the printer without the need for a hDC. The problem I have with PrintMap() is the fact that it does not print a border around the map. I was hoping to overcome this shortfall with OutputMap().

Thanks again.

Todd
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform