No subject
Thu Mar 4 16:11:33 CET 2010
var printProvider =3D new GeoExt.data.PrintProvider({
url: "/geoserver/pdf",
listeners: {
"loadcapabilities": function() {
var printPage =3D new GeoExt.data.PrintPage({
printProvider: printProvider
});
printPage.fit(mapPanel, true);
printProvider.print(mapPanel, printPage);
}
}
});
Thanks
--0016369c8e75b4f91e048acce166
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hello guys...<br><br>I=B4m trying to use the PrintProvider ... But I dont k=
now what should I put in URL config ...<br><br>From example page :<br><br><=
span class=3D"Apple-style-span" style=3D"border-collapse: separate; color: =
rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; f=
ont-variant: normal; font-weight: normal; letter-spacing: normal; line-heig=
ht: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space=
: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class=3D"=
Apple-style-span" style=3D"font-family: 'Lucida Grande','Lucida=
Sans Unicode',Geneva,Verdana,sans-serif; font-size: 14px; line-height:=
21px; text-align: left;"><pre style=3D"margin: 0px; padding: 0.5em; overfl=
ow: auto; font-family: Consolas,'Deja Vu Sans Mono','Bitstream =
Vera Sans Mono',monospace; font-size: 0.8em; letter-spacing: 0.015em; l=
ine-height: 13px; border: 1px solid rgb(204, 204, 204); background-color: r=
gb(248, 248, 248);">
<span class=3D"kd" style=3D"color: rgb(0, 112, 32); font-weight: bold;">var=
</span> <span class=3D"nx">printProvider</span> <span class=3D"o" style=3D"=
color: rgb(102, 102, 102);">=3D</span> <span class=3D"k" style=3D"color: rg=
b(0, 112, 32); font-weight: bold;">new</span> <span class=3D"nx">GeoExt</sp=
an><span class=3D"p">.</span><span class=3D"nx">data</span><span class=3D"p=
">.</span><span class=3D"nx">PrintProvider</span><span class=3D"p">({</span=
><br>
<span class=3D"nx">url</span><span class=3D"o" style=3D"color: rgb(102,=
102, 102);">:</span> <span class=3D"s2" style=3D"color: rgb(64, 112, 160);=
">"/geoserver/pdf"</span><span class=3D"o" style=3D"color: rgb(10=
2, 102, 102);">,</span><br>
<span class=3D"nx">listeners</span><span class=3D"o" style=3D"color: rg=
b(102, 102, 102);">:</span> <span class=3D"p">{</span><br> <span cla=
ss=3D"s2" style=3D"color: rgb(64, 112, 160);">"loadcapabilities"<=
/span><span class=3D"o" style=3D"color: rgb(102, 102, 102);">:</span> <span=
class=3D"kd" style=3D"color: rgb(0, 112, 32); font-weight: bold;">function=
</span><span class=3D"p">()</span> <span class=3D"p">{</span><br>
<span class=3D"kd" style=3D"color: rgb(0, 112, 32); font-weight=
: bold;">var</span> <span class=3D"nx">printPage</span> <span class=3D"o" s=
tyle=3D"color: rgb(102, 102, 102);">=3D</span> <span class=3D"k" style=3D"c=
olor: rgb(0, 112, 32); font-weight: bold;">new</span> <span class=3D"nx">Ge=
oExt</span><span class=3D"p">.</span><span class=3D"nx">data</span><span cl=
ass=3D"p">.</span><span class=3D"nx">PrintPage</span><span class=3D"p">({</=
span><br>
<span class=3D"nx">printProvider</span><span class=3D"o" st=
yle=3D"color: rgb(102, 102, 102);">:</span> <span class=3D"nx">printProvide=
r</span><br> <span class=3D"p">});</span><br> <span c=
lass=3D"nx">printPage</span><span class=3D"p">.</span><span class=3D"nx">fi=
t</span><span class=3D"p">(</span><span class=3D"nx">mapPanel</span><span c=
lass=3D"o" style=3D"color: rgb(102, 102, 102);">,</span> <span class=3D"kc"=
style=3D"color: rgb(0, 112, 32); font-weight: bold;">true</span><span clas=
s=3D"p">);</span><br>
<span class=3D"nx">printProvider</span><span class=3D"p">.</spa=
n><span class=3D"nx">print</span><span class=3D"p">(</span><span class=3D"n=
x">mapPanel</span><span class=3D"o" style=3D"color: rgb(102, 102, 102);">,<=
/span> <span class=3D"nx">printPage</span><span class=3D"p">);</span><br>
<span class=3D"p">}</span><br> <span class=3D"p">}</span><br><sp=
an class=3D"p">});</span></pre></span></span><br>Thanks<br><br>
--0016369c8e75b4f91e048acce166--
More information about the Users
mailing list