Community of VE/MapPoint Users and Developers
This is a discussion on PrintOut method with MapPoint ActiveX control?!! within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Anyone knows how to print using MapPoint 2004 ActiveX Control?! i've used the PrintOut method as follows: axMappointControl1.ActiveMap.PrintOut("C://Europe.ptm", "Testing", 1, ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| PrintOut method with MapPoint ActiveX control?!! i've used the PrintOut method as follows: axMappointControl1.ActiveMap.PrintOut("C://Europe.ptm", "Testing", 1, MapPoiny.GeoPrintArea.geoPrintMap, MapPoint.GeoPrintQuality.geoPrintQualityNormal, MapPoint.GeoPrintOrientation.geoPrintPortrait, true, true, false, false); and whenever i execute the above line, i get the following error: System.Runtime.InteropServices.COMException(0x8007 0BBB): A StartDocPrinter call was not issued. any idea where im going wrong. note: im not doing anythin special, im only executing the above line! Any help, links, thoughts would be very much appreciated. Thanks in advance, Regards Kam |
| |||
|
Are you trying to print to a file? The first parameter is the output file. (I am using Visual Basic, so I'm not sure if the parameter list is the same for you.) Try dropping the C://Europe.ptm. This is the code I am using in Visual Basic, where MPC is the MapPoint control on my form: Code: Friend Sub PrintMap()
If SetPrinterProperties(Me.hwnd) = True Then
MPC.ActivePrinter = Printer.DeviceName
MPC.ActiveMap.PrintOut , "Test", , geoPrintMap, _
geoPrintQualityDraft, geoPrintAuto
End If
Exit_:
Exit Sub
HandleError:
GoTo Exit_
End Sub
|
![]() |
| Tags |
| activex, control, mappoint, method, printout |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Keyboard control in mappoint activex control | djcapslock | MapPoint 2006/2009 Discussion | 1 | 03-10-2005 11:16 AM |
| Printout method not working | AndyYule | MapPoint 2006/2009 Discussion | 6 | 02-03-2003 06:27 AM |
| Map PrintOut method | blackmap | MapPoint 2006/2009 Discussion | 1 | 01-10-2003 03:04 PM |
| I am using the MapPoint ActiveX control in a VB Ap.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-24-2001 07:35 AM |
| How does one get the activeX mappoint control to d.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-25-2001 07:26 PM |