Limitations on the Printing Functionality

Printing WMS World Map http://www2.demis.nl/wms/wms.ashx?WMS=WorldMap:

This service restricts image size requests to a maximum of 2001 pixels in width and a maximum of 2001 pixels in height (such big images can be requested when trying to print in high DPI). For image requests that do not conform to this restriction, an exception report is served instead of the image, hence the blank image will appear as a print result.

Exception report from the service is as follows:

<?xml version='1.0' encoding="UTF-8" standalone="no" ?>

<!DOCTYPE ServiceExceptionReport SYSTEM "http://www2.demis.nl/WMS/exception_1_1_1.dtd" >

<ServiceExceptionReport version="1.1.1">

<ServiceException>

<![CDATA[

WMS Warning: HEIGHT is restricted to 2001 pixels for this application

]]>

</ServiceException>

</ServiceExceptionReport>

Printing WMS served with scale bands:

There are differences in the view of a map in the map window and the resulting print-out.

These differences appear when the service layers are served by the service in different scales. Map scale can differ from the scale of a print-out, and in this case, there are differences between the appearance of a map window and the print-out.

Printing to PDF

Sometimes when printing a map to PDF, the GraphicsMagic convert command may fail because the paths for the files passed to the convert command are too long. Once this happens, the following error is listed in the log file::

ERROR Intergraph.MapPrinting.PrintService.Common.PrintService - Could not find file 'C:\Program Files\Common Files\Hexagon\Services\Supporting Services\PrintService\App_Data\Resources\Pdfs\17cb3dc3-dcc7-4310-9c03-62bd97d8f25b.pdf'.   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

The workaround for this problem is to add quotes to the parameters and to execute the conversion manually in a command prompt:

“c:\Program Files\GraphicsMagick-1.3.18-Q16\gm.exe”  convert -density 96 “C:\Program Files\Common Files\Hexagon\Services\Supporting Services\PrintService\App_Data\Resources\Pdfs\17cb3dc3-dcc7-4310-9c03-62bd97d8f25b.png” EPDF:”C:\Program Files\Common Files\Hexagon\Services\Supporting Services\PrintService\App_Data\Resources\Pdfs\17cb3dc3-dcc7-4310-9c03-62bd97d8f25b.pdf”