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

7301
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
JeffSauder
Occasional Contributor
Hi Lisa,

Would you mind sending a sample to jeff.sauder@gilbertaz.gov?

Thanks,
0 Kudos
LisaChesley
New Contributor
Good afternoon, Jeff!

The project is sent.  Please let me know if you have any questions!

Thanks!

Lisa
0 Kudos
BaohuaTao
New Contributor
Hi, Lisa, do you mind sending the project to bhtao@yahoo.com. Thanks!
0 Kudos
RobertO_Donnell
New Contributor II
Hi Lisa,

Can you please send the zip file to rdodonnell@msn.com!

Thanks a bunch,

Rob
0 Kudos
MAWashington
New Contributor
I too am looking for an SL 4 map print solution...may I also have a copy from Lisa?
0 Kudos
FernandoMartinez_De_Simon
New Contributor
Hi Lisa Chesley, could you please also send a copy of your application to my mail ( x_d_s@hotmail.com ) I would love to have an example to look at.
Many thanks, Fernando
0 Kudos
LisaChesley
New Contributor
Fernando, Rob, and bhtao, I've sent you the project.  rgia, I'd be more than happy to send the project along - could you provide an email address to send it to, please?

Thanks!

Lisa
0 Kudos
JoaoNinguem
New Contributor
Hi Lisa,

Can you please send the zip file to caderno@walla.com


thx
0 Kudos
LisaChesley
New Contributor
Good morning!

Project sent!  If you have any questions, please don't hesitate to email me back.

Thanks,

Lisa
0 Kudos
ScottBridwell
New Contributor III
Hi Lisa:

Could you send this to me as well? sbridwell@mag.maricopa.gov

thanks,
scott
0 Kudos