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() ...
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