Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

PrintOut method with MapPoint ActiveX control?!!

This is a discussion on PrintOut method with MapPoint ActiveX control?!! within the MapPoint Desktop 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, ...

  1. #1
    TheJudge is offline 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

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    It looks like there's a typo:
    "MapPoiny"

    It's not that simple, is it?

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

  4. #4
    Martel is offline 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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Re: Keyboard control in mappoint activex control
    By djcapslock in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-10-2005, 11:16 AM
  2. Printout method not working
    By AndyYule in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 02-03-2003, 06:27 AM
  3. Map PrintOut method
    By blackmap in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-10-2003, 03:04 PM
  4. I am using the MapPoint ActiveX control in a VB Ap....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-24-2001, 07:35 AM
  5. How does one get the activeX mappoint control to d....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-25-2001, 07:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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