This is a migrated thread and some comments may be shown as answers.

Generate PDF and send in email from code behind

2 Answers 495 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
rmoynihan
Top achievements
Rank 1
rmoynihan asked on 22 Jul 2009, 07:48 PM
Hi,

Is it possible to generate a report from code behind and then send this pdf as an email.

I would like to achieve this without the user having to generate the report so I would need to do it using the api.

The scenario is if a user clicks a button 3 reports will get generated and sent to the user;s email address.
I want to do this on the fly.

I guess I might have to save the generated pdf in a temp folder while I send the email and then delete the reports.

Thanks,

Ronan

2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 23 Jul 2009, 05:48 AM
Hi rmoynihan,

As a new user to Telerik Reporting, we highly recommend that you visit the online resources linked below, before posting an inquiry:

Online examples

Online documentation

KB articles

Code library

Video Tutorials

Of course, you can browse the public forum as well in order to find specific information/code sample concerning an aspect of the Reporting features. There are numerous threads which can get you started/assist you through the development process.


As to your inquiry, please review the following posts:
Note that the blog post uses the currently obsolete (as of Q2) Render() method, which should be replaced with the RenderReport() method from the first link.
Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
rmoynihan
Top achievements
Rank 1
answered on 23 Jul 2009, 06:39 AM
Cool,

Thanks Steve.
Tags
General Discussions
Asked by
rmoynihan
Top achievements
Rank 1
Answers by
Steve
Telerik team
rmoynihan
Top achievements
Rank 1
Share this question
or