<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:8pt"><div>Hi,<br><br>I am experiencing strange printing behaviour ever since I tried to intergrate the PrintExtent plugin.<br><br>1. the printprovider gives a n empty pdf if the method is GET<br><br>2. The extent vector is always printed in the pdf (with POST) and is doesn´t correspond to the print extent.<br><br>can anyone see what i´m doing wrong?<br><br><br>The map can be seen here...<br><span><a target="_blank" href="http://maps.zgb.de:8080/geoserver/www/zgb_energie/geodatenportal.html">http://maps.zgb.de:8080/geoserver/www/zgb_energie/geodatenportal.html</a></span><br><br><br>var printDialog;<br> var printProvider = new GeoExt.data.PrintProvider({<br> method: "POST", // "POST" recommended for production
use<br> capabilities: printCapabilities, // from the info.json script in the html<br> customParams: {<br> mapTitle: "ZGB Geodatenportal",<br> comment: "Fachthemen"<br> }<br> });<br><br><br>...<br><br>}), '-', new Ext.Button({<br> text: "Drucken...",<br> icon: '../images/printer.png',<br> tooltip: "kartenansicht in PDF Format exportieren",<br> handler: function ()
{<br> printDialog = new Ext.Window({<br> title: "Druckansicht",<br> layout: "fit",<br> autoWidth: true,<br> height: 400,<br> items: [{<br> xtype:
"gx_printmappanel",<br> map: {maxExtent: new OpenLayers.Bounds(912352.369449, 6720955.021855, 1391765.410767, 7014473.210418)<br> },<br> projection: epsg900913,<br> displayProjection: epsg4326,<br> units:
"m",<br> numZoomLevels: 21,<br> maxResolution: 156543.0339,<br> sourceMap: mapPanel,<br> plugins: [printExtent],<br> printProvider: printProvider<br> }],<br>
<br> bbar: [{<br> text: "PDF Erstellen...",<br> handler: function () {<br> printDialog.items.get(0).print()<br>
}<br> }]<br> });<br> printDialog.show()<br> }<br> }), '->', quickzoom]<br> });<br></div>
</div><br></body></html>