[mapguide-users] Print Error

Paco Alvarez palvarez at geomapgis.com
Tue Apr 24 05:30:59 EDT 2007


I found finally what the problem is and the solution.

Exception was raised when trying to set the scale bar in the print layout.

It's all about Regional Settings. My computer has default French regional
settings applied and the group symbol is set to blank. So, a scale number
like 98765 is converted as 98 765. Because of this
MgUtil.WideCharToMultiByte try to do conversion and fails.

Changing this parameter (set ',' instead of blank) allows print correctly.

Paco.


Paco Alvarez wrote:
> 
> Hi all,
> 
> I'm trying to print using the print layout with DWF viewer.
> The layout is the default one generated by the Studio and validated.
> 
> When I try print preview I get an error : 559 MgInvalidArgumentException
> From the log file I find this :
> 
>  Error: Invalid argument(s):
>         	[1] = "const string&"
>         The string is invalid and cannot be converted.
>  StackTrace:
>   - MgMappingServiceHandler.ProcessOperation line 81 file
> c:\build_bond_area\mapguide_open_source\build_3.1\mgdev\server\src\services\mapping\MappingServiceHandler.cpp
>   - MgOpGeneratePlot.Execute line 182 file
> c:\build_bond_area\mapguide_open_source\build_3.1\mgdev\server\src\services\mapping\OpGeneratePlot.cpp
>   - MgServerMappingService.GeneratePlot line 831 file
> c:\build_bond_area\mapguide_open_source\build_3.1\mgdev\server\src\services\mapping\ServerMappingService.cpp
>   - MgServerMappingService.GenerateMultiPlot line 1230 file
> c:\build_bond_area\mapguide_open_source\build_3.1\mgdev\server\src\services\mapping\ServerMappingService.cpp
>   - MgUtil.WideCharToMultiByte line 297 file .\System\Util.cpp	Invalid
> argument(s):
> 	[1] = "const string&"
> The string is invalid and cannot be converted.
> 
> The Server version is : 1.1.0.301
> 
> Any ideas ?
> 
> Thnx
> 
> 

-- 
View this message in context: http://www.nabble.com/Print-Error-tf3607403s16610.html#a10157415
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list