[Users] print module
Claire lagesse
Claire.Lagesse at ensg.eu
Fri Oct 14 10:16:54 CEST 2011
Thank you so much for your help.
I tried to include override-ext-ajax.js file following the instructions.
But I gess I don't manage to exclude files. Anyway, FireBug give me this
error :
syntax error : () -- in ext-all.js
I guess it's because i put it in a wrong way or at a wrong place in my
code. But I don't manage to solve the problem...
Do someone have any clue ?
Claire
> I once had a proxy problem with PrintProvider and post requests.
> Including Ext.Ajax Overrides in geoext solved the problem.
>
> http://geoext.org/lib/overrides/override-ext-ajax.html
>
>
> Ralph Dell
>
> -----Original Message-----
> From: users-bounces at geoext.org [mailto:users-bounces at geoext.org] On
> Behalf Of Claire lagesse
> Sent: Tuesday, October 11, 2011 6:06 AM
> To: users at geoext.org
> Subject: [Users] print module
>
> Hi,
>
> I want to include to my web application a printing module. I use
> Geoserver. All that have to be installed on Geoserver does. I just don't
> manage to send my request in 'POST'. With 'GET' it works but only with a
> few amount of information in the url. And it isn't enouth for my web
> app.
>
> Could you help me ?
>
> Thanks a lot !
>
> ----------------------------------------------------------------------
> Here is my code until this point :
> ----------------------------------------------------------------------
>
> action27 = new Ext.Action({
>
> icon : './img/print.png'
>
> ,handler: function(){
>
>
>
>
> // the print extent before creating the pdf.
>
> var printDialog = new Ext.Window({
>
> title: "Print Preview",
>
> layout: "fit",
>
> width: 350,
>
> autoHeight: true,
>
> items: [
>
> new
> GeoExt.PrintMapPanel({
>
>
> sourceMap: map.mapP,
>
>
> printProvider: {
>
>
> method: "GET",
>
>
> capabilities: printCapabilities,
>
>
> customParams: {
>
>
> mapTitle: "GeoExt Printing Demo",
>
>
> comment: "This demo shows how to use GeoExt.PrintMapPanel"
>
>
> }
>
>
> }
>
> })],
>
> bbar: [{ text: "Create PDF",
>
>
> handler: function() {
>
>
> printDialog.items.get(0).print();
>
>
> }
>
>
>
>
> }]
>
> });
>
> printDialog.show();
>
>
>
> }
>
> // button options
>
> ,tooltip: "Print"
>
> });
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list