ActiveReports has this option to display report:
The commented out part is an option I have tried. The report converts and is saved to my desktop but does not open. What is missing? Thanks in advance.
pdfReport.Options.DisplayMode = DataDynamics.ActiveReports.Export.Pdf.DisplayMode.FullScreen;Does telerik reporting have a similar option? I can not seem to locate it . So far I have tried the following:
Telerik.Reporting.Report Telrpt = new TelRptContract(); Telerik.Reporting.Processing.ReportProcessor TelContractrp = new Telerik.Reporting.Processing.ReportProcessor(); System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable(); Telerik.Reporting.InstanceReportSource TelContractirs = new Telerik.Reporting.InstanceReportSource(); TelContractirs.ReportDocument = Telrpt; Telerik.Reporting.Processing.RenderingResult result = TelContractrp.RenderReport("PDF", TelContractirs, deviceInfo); string dContract = DateTime.Now.ToString().Replace("/", ""); dContract = dContract.Substring(0, 9); string fileName2 = result.DocumentName + "_" + dContract + "." + result.Extension; //string path2 = "c:\\Users\\akinw\\Desktop\\"; //string path2 = System.IO.Path.GetTempPath(); string path2 = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); string filePath2 = System.IO.Path.Combine(path2, fileName2); FileStream fs = new FileStream(filePath2, FileMode.Create); fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length); fs.Close(); //fs = File.Open(filePath2, FileMode.Open); System.IO.File.Open(filePath2, FileMode.Open);The commented out part is an option I have tried. The report converts and is saved to my desktop but does not open. What is missing? Thanks in advance.