Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Need to print to a file 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 |
| |||
| 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 |
| |||
|
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);
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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| file, print |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |