[Users] Help with Geoext Print
Matt Priour
mpriour at kestrelcomputer.com
Tue Jul 12 18:05:34 CEST 2011
Check out these:
Print Map Panel
http://dev.geoext.org/docs/lib/GeoExt/widgets/PrintMapPanel.html
Print Extent Plugin
http://dev.geoext.org/docs/lib/GeoExt/plugins/PrintExtent.html
Print Preview Example
http://dev.geoext.org/trunk/geoext/examples/print-preview.html
Matt Priour
Kestrel Computer Consulting
From: egbe eguavoen
Sent: Tuesday, July 12, 2011 8:42 AM
To: users at geoext.org
Subject: [Users] Help with Geoext Print
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
--------------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110712/2a5a772c/attachment.htm
More information about the Users
mailing list