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

7312
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
TedBrown
New Contributor II
Lisa,
I would appreciate a copy of your code.
tbrown at lcra.org

Thanks in advance!
-ted
0 Kudos
JaneChen
New Contributor
Lisa,

Your attached zip file appears to be invalid or corrupt. Can you please send me your entire print project? My sl 4 project needs this customized print function immediately. Thanks!

jane chen 
meijin.chen@houstontx.gov


Good afternoon, all!

I have finally compressed my project down enough to post it here!  Now included is a table of contents for the two dynamic layers on the map, based on the SOAP code from this thread:

http://forums.esri.com/Thread.asp?c=213&f=2455&t=289070

The code I built on is posted in the third, fourth, and fifth posts in the thread.

If you have any questions, please feel free to ask!

Lisa
0 Kudos
SloaneWalker
New Contributor
I tried to download your sample, but the zip seems to be corrupted for me.  Can you send the sample to swalker@rdffg.bc.ca ?
0 Kudos
KrisStitt
New Contributor
Hello,

Would you mind sending me a copy as well, the zip file seems to be corrupted for me.

kris.stitt@gmail.com

Thanks in advance for the help!

-Kris
0 Kudos
LisaChesley
New Contributor
Good morning, all!

The project has been mailed out.  My apologies, I was out on holiday until this morning.

Lisa
0 Kudos
JimmyBrink
New Contributor II
I have fired off the project to those that have requested it so far - hopefully you find it helpful!  If anyone else would like it, please give an email address and I'll send it.

Thanks!

Lisa



Lisa
Can you send a copy of your print application, jbrink@kgis.org?

Thanks

Jim
0 Kudos
LisaChesley
New Contributor
Good morning, Jim!

I have emailed the project.

Thanks!

Lisa
0 Kudos
RodWilmot
New Contributor II
Hi Lisa,

Would you be some kind as to forward your project to me as well?


Thanks again,

Rod
Central Lake Ontario Conservation
0 Kudos
LisaChesley
New Contributor
Good afternoon, Rod!

I'd be glad to - do you have an email address I can send the project to?

Thanks!

Lisa
0 Kudos
BrianPangtay
Occasional Contributor
Lisa,

Can you send me a copy of your project to bpangtay@sanantonio.gov?

Thanks, Brian
0 Kudos