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

ReportViewer & Auto Save ?

1 Answer 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jean-Yves
Top achievements
Rank 1
Jean-Yves asked on 25 Jan 2010, 04:38 PM
hello,

I find something to save the document directely avec the generation... But it's not working with the relerik reportviewer

            Warning[] warnings; 
            string[] streamids; 
            string mimeType; 
            string encoding; 
            string extension; 
 
            byte[] bytes = reportViewer1.LocalReport.Render( 
               "PDF"nullout mimeType, out encoding, out extension, 
               out streamids, out warnings); 
 
            FileStream fs = new FileStream(@"c:\output.pdf", FileMode.Create); 
            fs.Write(bytes, 0, bytes.Length); 
            fs.Close();  


Do you have any solution to save directely the file on the serveur ?
thank you

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 26 Jan 2010, 11:08 AM
Hi Jean-Yves,

I guess this is what you are looking for: Saving a report into PDF format programmatically.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Jean-Yves
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or