Showing results for 
Search instead for 
Do you mean 

Customizing the default scale value of Portal Print Service

by Technical Evangelist on ‎11-28-2016 02:21 PM - edited on ‎04-21-2017 04:06 AM by Technical Evangelist (493 Views)

Question

My default map scale is 25000, is there a way for the Portal Print Service to read the scale from the current map scale?

Answer

The default/starting value of the Print Service "Scale" (under the Common Options tab) is the first value defined from the print template xaml file. The available scale values are retrieved from the Print Service and Portal cannot override them. There is currently no way for the Portal Print Service to get the current scale from Portal.

 

You could modify the following section of the template (i.e.

C:\Program Files\Common Files\Hexagon\Services\Supporting Services\PrintingService\App_Data\Resources\Templates\TemplateLandscape.xaml) so that, for instance, 25000 is the first value of the list.

 

    <tm:TemplateControl.TemplateScales>

        <sys:Int32>25000</sys:Int32>
        <sys:Int32>1000</sys:Int32>
        <sys:Int32>2000</sys:Int32>
        <sys:Int32>5000</sys:Int32>
        <sys:Int32>10000</sys:Int32>
        <sys:Int32>15000</sys:Int32>
        <sys:Int32>50000</sys:Int32>
        <sys:Int32>100000</sys:Int32>
        <sys:Int32>250000</sys:Int32>
        <sys:Int32>500000</sys:Int32>
        <sys:Int32>1000000</sys:Int32>
        <sys:Int32>2000000</sys:Int32>
    </tm:TemplateControl.TemplateScales>

 

Make sure to restart IIS, clear .NET Temp files and browser cache.

 

 

Contributors