Hi,

try passing a customParams object in the constructor of
GeoExt.data.PrintProvider.

    /** api: property[customParams]
     *  ``Object`` Key-value pairs of custom data to be sent to the print
     *  service. Optional. This is e.g. useful for complex layout definitions
     *  on the server side that require additional parameters.
     */
    customParams: null,

Best regards,
Bart

> Hi all
>
> I'm using GeoExt and the Geoserver printing module the create pdf files
> for printing.
> Since I would like to preserve the ascpect ration of the screen for the
> pdf print, I would like to pass the width and height of the map tho the
> server instead of the opposite way. The user manual of the printing
> module says, I can use variable substitution in this part but I didn't
> find out how to do that.
> Has any one experience with passing variables form the client to the
> server? Or is there a website with further imformation
> I tried somethin like this in the config.yaml file:
>
>           width: ${mapwith}
>           height: ${mapheight}
>
> This trowths an error in the LoadCapabilities request. Second problem:
> how/where the pass the variables in the json string
>
>
> Regard's
> Peter
>
>
>
>
>
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1_______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to