Hello All,<br><br>I am new to Geoext and i am trying to embed print capabilities. I can get print PDF to work, but i am struggling trying to figure out how to perform a straight print (and a HTML preview) no legend, no scale bar, no footer....just to print the map when the Print button is selected.<br>
<br><br><i> var printProvider = new GeoExt.data.PrintProvider({<br> method: "GET", // "POST" recommended for production use<br> capabilities: printCapabilities, // provide url instead for lazy loading<br>
}<br> });<br>......<br> printPage = new GeoExt.data.PrintPage({<br> printProvider: printProvider,<br> customParams: {<br> mapTitle: "Test Print"<br> }<br> });<br>
<br clear="all">..........................<br> new GeoExt.Action({<br> control: new OpenLayers.Control.Button(),<br> text: "Print...",<br> map: map,<br>
iconCls: "print",<br> icon: "img/print.png",<br> enableToggle: false,<br> tooltip: "Print current view",<br> handler: function(){<br>
// convenient way to fit the print page to the visible map area<br> printPage.fit(mapPanel, true);<br> // print the page<br>
printProvider.print(mapPanel, printPage);<br> }<br>})<br></i><br><br>Any help would be highly appreciated.<br><br>Kind Regards,<br>Egbe<br><br>