or
| private void SaveReport(string fileLocation) { |
| ReportProcessor reportProcessor = new ReportProcessor(); |
| //pass the reportViewer1's "Report" object to the RenderReport method |
| //populate the HashTable if you need to specify DeviceInfo properties, otherwise just pass an empty one like I've done here |
| RenderingResult renderingResult = reportProcessor.RenderReport("PDF", reportViewer1.Report, new Hashtable()); |
| //now just create a filestream and write the DocumentBytes array to it - flush and close, and your file is ready. |
| using (FileStream destinationFileStream = new FileStream(fileLocation, FileMode.Create, FileAccess.Write)) { |
| destinationFileStream.Write(renderingResult.DocumentBytes, 0, renderingResult.DocumentBytes.GetLength(0)); |
| destinationFileStream.Flush(); |
| destinationFileStream.Close(); |
| } |
| } |
Hello Telerik,
I have some strange problem with lates version of Telerik.Reporting.
My application generates bar code - reports, but when I try to make export to PDF format I see '#ERROR# Parameter is not valid' instead of bar code. This strange beheviour I see in all pages instead of first page (on first page - everything ok!). I have tested your demo example (Product Tags) on my environment, result: the same errors in pdf document.
I can publish PDF examples with Error message.