MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Print a map

This is a discussion on Print a map within the Development forums, part of the MapPoint 2006/2009 Discussion category; Dear Forum i use VB6 whit mappoint ocx. I created a form that include a map. I can add pushpin ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-27-2008
Junior Member
White Belt
 
Join Date: Aug 2007
Posts: 7
Print a map

Dear Forum

i use VB6 whit mappoint ocx. I created a form that include a map.
I can add pushpin and many other thinks. Now i want print the current
map view, but dont work ( i used the ....ActiveMap.PrintOut method)

Can you help me ?

thanks

roberto
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 02-27-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 217
Re: Print a map

Hi zanabonir,

Please post the code you used for the print routine
so that one of us might identify the problem.

Thanks,

Mike Mattys
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 02-29-2008
Junior Member
White Belt
 
Join Date: Aug 2007
Posts: 7
Re: Print a map

Thanks MR Matthis

i display a map in my form1 .

The map abject i have so :

MapObj=form1.mpc.ActiveMap

for print, i do this:

MapObj.PrintOut

but is not working. I belive i need some other set befor i can use this commend

Thanks
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 02-29-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 217
Re: Print a map

zanabonir, I am making a demo in VB6
I hope this helps you ...

Mike Mattys

Form1 Code
------------------------------------------------------------
Option Explicit

Private objMap As MapPointCtl.Map

Private Sub Form_Load()
Form1.MappointControl1.Object.NewMap geoMapNorthAmerica
Set objMap = Form1.MappointControl1.Object.ActiveMap
End Sub

Private Sub Form_Unload(Cancel As Integer)
objMap.Saved = True
Set objMap = Nothing
End Sub

Private Sub Command1_Click()
PrintTurnByTurnRoute
End Sub

Sub PrintTurnByTurnRoute()
Dim objRoute As MapPointCtl.Route

'Set up the application
Set objRoute = objMap.ActiveRoute

'Create a route
objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)
objRoute.Waypoints.Add objMap.FindResults("Spokane, WA").Item(1)
objRoute.Calculate

'Print 2 draft copies of the route turn-by-turn with an Overview Map
objMap.PrintOut , "Turn-by-turn route", 2, _
geoPrintTurnByTurn, geoPrintQualityDraft, geoPrintLandscape, _
True, False, True, False
Set objRoute = Nothing
End Sub
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 02-29-2008
Junior Member
White Belt
 
Join Date: Aug 2007
Posts: 7
Re: Print a map

Thanks MR Matthis

problem solved. But please, explain to me one thik

Why you wrote

Set objMap = Form1.MappointControl1.Object.ActiveMap

and not
Set objMap = Form1.MappointControl1.ActiveMap

Also VB cant show me any suggestion after Object.

Thanks
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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/print-map-7189.html

Posted By For Type Date
Extracting the Mappoint 2002 Points of Interest - MapPoint Articles - MP2K Magazine This thread Refback 02-28-2008 11:47 PM
The Magazine for MapPoint - MP2K Magazine This thread Refback 02-27-2008 08:55 PM

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
Can I print a map in grids? rob4cee MapPoint 2006/2009 Discussion 1 01-19-2005 01:06 PM
Print Dialog!!!! Anonymous MapPoint 2006/2009 Discussion 0 11-18-2004 11:18 AM
Print more than 2 pages Anonymous MapPoint 2006/2009 Discussion 0 09-25-2003 10:36 AM
Print to PDF Anonymous MapPoint 2006/2009 Discussion 3 08-19-2003 08:08 AM
Is is possible to print out a map so that it print.... Anonymous MapPoint 2006/2009 Discussion 1 09-25-2001 03:05 PM


All times are GMT -5. The time now is 12:06 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

Ski Deals
Book first-rate ski holidays from the leading travel brands at exceptionally competitive prices. Check out the latest range of ski deal online at Holiday Hypermarket.

Turkey Holidays
Find and book Turkey Holidays with Travel Counsellors. Holiday destinations around the world including Turkey.

Cape Town Cheap Flights
Thinking about visiting Cape Town. Cheap flights are hard to find unless you visit dealchecker.co.uk. We'll shop around so you don't have to.

Holidays in Cyprus
Holidays in Cyprus are enriched by the abundance of churches, ruins and natural wonders. Book a holiday with us today!

Cheap Canaries Holidays
Are you hunting down cheap Canaries holidays? Well check out ulookubook.com to bag a great value holiday. There are numerous festivals taking place all year round. Why not book your holiday around one?

Travel
Check out the travel options on Travel.co.uk.

Cheap Lanzarote Holidays
The Canary Islands beckons you to come! View information on cheap Lanzarote holidays at On The Beach!


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