Thanks alot for the help Matt. For some reason, I still can't get it print in another format other than PDF. So I have decided to stick to PDF print (print preview) for now but would revisit later.
Many Thanks, Egbe On 12 July 2011 17:05, Matt Priour <mpri...@kestrelcomputer.com> wrote: > 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 <egbe.eguav...@gmail.com> > *Sent:* Tuesday, July 12, 2011 8:42 AM > *To:* users@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@geoext.org > http://www.geoext.org/cgi-bin/mailman/listinfo/users > > >
_______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users