Hi,

have you tried to do something like in this example in your code:
http://api.geoext.org/1.0/examples/print-page.html

The essential part is to call the PrintProvider's print method with an 
additional option, e.g.

printProvider.print(mapPanel, printPage, {legend: legendPanel});

Also note that it is required to configure the server's config.yaml 
accordingly, as described here:
http://api.geoext.org/1.0/docs/lib/GeoExt/data/PrintProvider.html

- !legends
    maxIconWidth: 0
    maxIconHeight: 0
    classIndentation: 0
    layerSpace: 5
    layerFontSize: 10

Regards,
Andreas.

On Dec 13, 2010, at 18:10 , Rémi Lagoin wrote:

> Hi all,
> 
> I try to use the form print PDF GeoExt based servlet mapfish geoext as in the 
> example (1).
> The PDF generation is going well but I can not get the icons of the layers in 
> the legend, I get only the name of the active layers.
> 
> I use a TreePanel (with captions for each layer), a legendPanel (because I 
> assume that its presence is essential to display the caption in the PDF?), 
> And a MapPanel (required I guess).
> 
> I also tried the Geoext.ux.SimplePrint, but no more success ... it gives me 
> no icons layers ...
> 
> The inclusion of the legend went very well with the widget mapfish 
> (LayerTree) I feel that this is not so simple with a TreePanel and 
> legendPanel ...
> 
> Do you have any advice for me because I do not know what to do to move 
> forward ...
> 
> Thanks a lot!
> Remi
> 
> 1 - http://api.geoext.org/1.0/examples/print-form.html 
> _______________________________________________
> Users mailing list
> [email protected]
> http://www.geoext.org/cgi-bin/mailman/listinfo/users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to