Select to view content in your preferred language

Is there any print example that can be referenced for SL 4?

7658
71
07-14-2010 01:18 PM
weiliang
New Contributor II
I try to incorporate the print feature into our website (with SL 4, and ESRI API 2.0). I used the following code, but it direct me to the print dialog box only. How can I make a print template (e.g., http://citizengis.chesterfield.gov/) to print the current map extent with some controls (e.g, scale bar) into a pdf. Is there any easy way to do so or I must create a WCF service?


PrintDocument doc = new PrintDocument();
doc.PrintPage += (s, e) =>
{
   e.PageVisual = MyMap
   e.HasMorePages = false;
};
doc.Print("Map");

Many thanks,

Wei
0 Kudos
71 Replies
LisaChesley
New Contributor
Good afaternoon, Brian!

The project has been sent!

Thanks!

Lisa
0 Kudos
Sheng-TeTsai
New Contributor
Hi Lisa,

Could you please send me a copy of your project to tsd333@hotmail.com

Thanks in advance,

Sheng-Te
0 Kudos
LisaChesley
New Contributor
Good afternoon, Sheng-te!

The project has been sent.

Thanks!

Lisa
0 Kudos
RodWilmot
New Contributor II
Hi Lisa,

Can you forward the project to me as well?

Greatly appreciated.

rwilmot@cloca.com
0 Kudos
ErikEngstrom
Occasional Contributor II
Lisa,
I would also like to see this project. I would be forever grateful!

Erik.Engstrom@state.vt.us
Thanks!
0 Kudos
SebastienPelletier
Occasional Contributor
Hi Lisa,

Could you please send me a copy of your project to sebaspelletier@yahoo.ca

Thanks

Sebastien
0 Kudos
LisaChesley
New Contributor
Good afternoon, all!

Rod, Erik, and Sebastien - the project has been sent.  Please let me know if you have any questions or concerns!

Thanks!

Lisa
0 Kudos
ScottFriedrich
New Contributor III
Hello Lisa,

I too would like to have the printing sample: sfriedrich@pirnie.com

Thanks for sharing...

Scott
0 Kudos
LisaChesley
New Contributor
Good morning, Scott!

As requested, I have sent the project.

Thanks!

Lisa
0 Kudos
YingLin
New Contributor
there is a need to print a map in a user defined scale. how can I define the printout extent based on the scale? Anyone has a formula for this purpose?
thanks
0 Kudos