MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Need to print to a file

This is a discussion on Need to print to a file within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Greetings, I need to use PrintOut() to print the map to a file, but find that it's locking up when ...


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 01-13-2006
Senior Member
Green Belt
 
Join Date: Jul 2005
Posts: 105
Need to print to a file

Greetings,

I need to use PrintOut() to print the map to a file, but find that it's locking up when I make the call. Here are the parameters I'm using.


mpMap.PrintOut("c:\\tmp\\test.ptm","Test",1,
MapPoint.GeoPrintArea.geoPrintDirections,
MapPoint.GeoPrintQuality.geoPrintQualityPresentati on,
MapPoint.GeoPrintOrientation.geoPrintAuto,
false,false,false,false);

Can someone please point out what I'm doing wrong with this? I'm using C#, and I find the program hangs on that command, indefinitely. When I select "Break" from the "Debug" menu, it's as if the program is active at the cursor, but if I press F10, it hangs all over again.

Thanks for the help,
Bob
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 01-13-2006
Senior Member
Green Belt
 
Join Date: Jul 2005
Posts: 105
it's partially working

I have moved my program to another computer, and the file is being written. (I realized the file format is tif.) So it works. But oddly, without my prompting, Microsoft Office Document Imaging viewer opens automatically, and displays the image.

Has anybody got any idea why it's opening? How about to block it from opening? And on my main development machine it still hangs when I call PriotOut(). Could it be hanging, perhaps, because there is no default viewer? And it works on my second machine because there is a default viewer?

I'd appreciate anybody's help.

Thanks.
Bob
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 01-14-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

I did exacly same test on my development machine, it does not block, the file is written to. Nothing is opened but I dont have that viewer installed.

Code:
    mp.ActiveMap.PrintOut("c:\\test.ptm", "test", 1,
                          GeoPrintArea.geoPrintMap,
                          GeoPrintQuality.geoPrintQualityPresentation,
                          GeoPrintOrientation.geoPrintAuto,
                          false, false, false, false);
I have no idea wy it should block on your other machine. Did you tryed to print to a printer also to test ?

About the auto opning. I'm pretty sure you can set this in registry that it would not, or maybe do not use it as default opener.

As an alternative you can probably copy the map image to clipboard, then copy it into an image object and save to file.
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
file, print


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
Print to PDF Anonymous MapPoint 2006/2009 Discussion 3 08-19-2003 09:08 AM
Print View healthsouthgirl MapPoint 2006/2009 Discussion 1 08-14-2002 10:03 PM
Print Literature Anonymous MapPoint 2006/2009 Discussion 2 08-07-2002 11:04 AM
Can I print my map on one page, and the key, (or l.... Anonymous MapPoint 2006/2009 Discussion 1 04-22-2002 08:09 AM
Is is possible to print out a map so that it print.... Anonymous MapPoint 2006/2009 Discussion 1 09-25-2001 04:05 PM


All times are GMT -5. The time now is 05:04 AM.


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