| 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.
hi guys
i have a problem with the telerik report designer.
we have a 2 tier application, containing a GUI layer and a DAL layer.
for the reports we created a new library because not all customers use the same reports.
the reports library has a reference to the DAL library. i created a new report and choose the dataset
from the DAL library.
a dataset and a tableadapter are inserted from the toolbox to the report. when I run the software, the report works fine.
but when i click the preview tab in the design mode, no data is displayed.
if the dataset and the tableadapter are attached to the same report project the data is displayed in the report preview correctly.
its dificult to create a report without preview.
does anybody has an idea or a work around?
any help is appreciated
thanks a lot in andvance,
marino