Community of VE/MapPoint Users and Developers
This is a discussion on printing: the parameter is incorrect if not geoPrintMap within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I'm trying to print with following code (prntDlg is a printer dialog form). The problem is in the geoPrintArea, ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| printing: the parameter is incorrect if not geoPrintMap I'm trying to print with following code (prntDlg is a printer dialog form). The problem is in the geoPrintArea, if it is 0 (geoPrintMap) then it print ok, but any other value (1..5) gives: 'the parameter is incorrect' error. Anyone know what the problem could be ? Code: MP.ActivePrinter = prntDlg.SelectedPrinter.Items[prntDlg.SelectedPrinter.SelectedIndex].ToString();
MP.ActiveMap.PrintOut("",
prntDlg.Title.Text,
(int)prntDlg.Count.Value,
(GeoPrintArea)prntDlg.GeoPrint,
(GeoPrintQuality)prntDlg.Quality,
(GeoPrintOrientation)prntDlg.Orientation,
prntDlg.Collate.Checked,
prntDlg.Legend.Checked,
prntDlg.Overview.Checked,
prntDlg.Faxable.Checked);
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| ||||
|
Wilfried, I've used this option before so I know it works. Have you tried the names of the enum types (geoPrintDirections, geoPrintHighlightedPlaces, geoPrintMap, geoPrintSelectedArea, geoPrintStripMaps, geoPrintTurnByTurn and geoPrintFullPage) instead? Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| |||
|
Hi Richard, I tryed one of them and _yes_ it works
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Quote:
Joel |
| |||
|
Hi, integer, so must be valid, but to be sure I should try it again, because this method gives 'the parameter is incorrect' error when there is a print option set that should not be there, eg route if there is no route. And by the time I asked this question I did not check for these things.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| geoprintmap, incorrect, parameter, printing |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "The parameter is incorrect" | Jaba | MapPoint 2006/2009 Discussion | 9 | 02-15-2005 02:44 PM |
| Incorrect locations? | harris00 | MapPoint 2006/2009 Discussion | 1 | 05-25-2004 11:40 PM |
| byte parameter | Anonymous | MapPoint 2006/2009 Discussion | 0 | 05-22-2004 06:12 AM |
| How can i find address by passing Lat/Lon as parameter? | joesebi | MapPoint 2006/2009 Discussion | 1 | 07-09-2003 10:10 AM |
| link data wizard won't let me use parameter queries | Anonymous | MapPoint 2006/2009 Discussion | 7 | 08-23-2002 11:14 AM |