[Users] Help with Geoext Print
egbe eguavoen
egbe.eguavoen at gmail.com
Tue Jul 12 15:42:11 CEST 2011
Hello All,
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.
* var printProvider = new GeoExt.data.PrintProvider({
method: "GET", // "POST" recommended for production use
capabilities: printCapabilities, // provide url instead for lazy
loading
}
});
......
printPage = new GeoExt.data.PrintPage({
printProvider: printProvider,
customParams: {
mapTitle: "Test Print"
}
});
..........................
new GeoExt.Action({
control: new OpenLayers.Control.Button(),
text: "Print...",
map: map,
iconCls: "print",
icon: "img/print.png",
enableToggle: false,
tooltip: "Print current view",
handler: function(){
// convenient way to fit the print page
to the visible map area
printPage.fit(mapPanel, true);
// print the page
printProvider.print(mapPanel,
printPage);
}
})
*
Any help would be highly appreciated.
Kind Regards,
Egbe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110712/4aea4083/attachment.htm
More information about the Users
mailing list