MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




PrintOut method with MapPoint ActiveX control?!!

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, ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-30-2004
Junior Member
Yellow Belt
 
Join Date: Mar 2004
Posts: 15
PrintOut method with MapPoint ActiveX control?!!

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, 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 03-30-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,480
Blog Entries: 1
It looks like there's a typo:
"MapPoiny"

It's not that simple, is it?

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 03-30-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
not quite sure what u mean by there is a type but it seems as easy as it looks above. it must be some kind of a setting.. !

not sure! hope somone would be able to help soon as im running out of time!!

Thanks.

Kam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 04-13-2004
Junior Member
Yellow Belt
 
Join Date: Feb 2003
Posts: 28
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
I am setting the default printer for the application then providing a print dialog that sets the printer options. You can ignore the SetPrinterProperties function. I was using that to allow the user to select a printer.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
activex, control, mappoint, method, printout


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 10:35 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54