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

Ability to email an exported PDF file

8 Answers 413 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris Weir
Top achievements
Rank 1
Chris Weir asked on 28 Sep 2006, 01:45 PM
The ability to capture an exported pdf file and add it to an email would be extremely helpful!

8 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 29 Sep 2006, 09:31 AM

Hello Chris,

Thank you for your suggestion! We will consider adding similar functionality but most probably won't be ready with it in time for the first version of telerik Reporting.

Greetings,
Svetoslav
the telerik team
0
Chris Weir
Top achievements
Rank 1
answered on 29 Sep 2006, 02:49 PM
Is there any way to override the export to Excel functionality of the radGrid (I assume the reporting functionality will be quite similar)to capture the file before it is presented to the user in the save file dialog? I am trying to locate a solution that will allow me to do this, it is a really big part of my current application...
0
Svetoslav
Telerik team
answered on 02 Oct 2006, 11:25 AM

Hi Chris,

Actually, r.a.d.grid does not generate native Excel files. Instead, it uses the ability of Excel to create worksheets from HTML.

For the telerik Reporting, we are building our XLS engine that generates native Excel files without depending on actual installed Excel or browser (both are required for the r.a.d.grid export to Excel).

Using the telerik Reporting API, you will be able to capture the export output before or without using any viewer control and I guess this is what you need here.

Greetings,
Svetoslav
the telerik team
0
Franck
Top achievements
Rank 1
answered on 01 Dec 2006, 12:42 PM
Hi there
I am looking for a similar feature - and this is to run an NT Service that periodically generates a report (rendered as a PDF) and then emails it. I plan to use a webpage to define these reports, and save the definitions in a database.

Also, I want to use a java applet to render a chart on the page. Will this be possible??

Regards,
Sean
0
Vassil Petev
Telerik team
answered on 01 Dec 2006, 01:43 PM
Hi Sean,

Our product will not support this feature. But if you write an NT service and an EXE which to run the report and export it to PDF somewhere in the file system, you should be able do what you need.

Note however, that this task may be more complicated than you think. Our tool does not provide the ability to define/create reports from the browser. You need Visual Studio design time to do this. This means that the exe should run the report after its creation by the user. In other words, we are not sure how you would create periodical reports from VS design time.

Your idea sounds interesting and we will be more than happy to review and feature your implementation on our site once you manage to automate the process.


Best wishes,
Rob
the telerik team
0
rh
Top achievements
Rank 1
answered on 09 Feb 2007, 07:25 AM
I will be evaluating a report solution soon and one of my requirement is goint to be the ability to send the reports via PDF on a nightly or weekly basis. I don't want to have to save the PDF to disk, email, then delete it each time becuase I could have hundreds that go out each night.

It seems like you're already going to have the ability to get the PDF document out of the report object so that your file -> save code can save it. Would it be possible to expose a method to get the PDF in memory presumably as a stream?
0
Rossen Hristov
Telerik team
answered on 09 Feb 2007, 03:10 PM
Hello Roy,

We have such a method. It is located in the Telerik.Reporting.Processing assembly. The class that renders reports is ReportProcessor. Here is the sample code to render one of our example reports to PDF format and store it in a MemoryStream:

         SimpleReport report = new SimpleReport();
    string mimeType = string.Empty;
    string extension = string.Empty;
    Encoding encoding = null;
    byte[] buffer = ReportProcessor.Render("PDF", report, null, out mimeType, out extension, out encoding);
    MemoryStream stream = new MemoryStream(buffer);


You need to have references to the following assemblies in your project:

Telerik.Reporting
Telerik.Reporting.ImageRendering
Telerik.Reporting.Processing

You can also save it to the file system using a FileStream. That's it. We hope that this will solve your task.
 
         

All the best,
Rossen
the telerik team
0
Michael Cunningham
Top achievements
Rank 1
answered on 20 Feb 2007, 09:05 PM
We wrote an app a while back that performed this task as a windows service with xtra reports. It downloaded the report as a client of the website rather than attempting to generate the report server side. 
 
We had it set up to send faxes and or emails. I don't have the source handy but it wasnt too difficult to build.
Tags
General Discussions
Asked by
Chris Weir
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Chris Weir
Top achievements
Rank 1
Franck
Top achievements
Rank 1
Vassil Petev
Telerik team
rh
Top achievements
Rank 1
Rossen Hristov
Telerik team
Michael Cunningham
Top achievements
Rank 1
Share this question
or