Posted 25 January 2019, 4:00 am EST - Updated 30 September 2022, 5:52 pm EST
Chart is getting small after rendering
Posted by: debojyoti.chowdhury on 25 January 2019, 4:00 am EST
-
-
Posted 25 January 2019, 4:46 am EST
Hello Debojyoti,
I am unable to reproduce the issue at our end. Please refer to the attached report.
Could you please either modify the attached application or provide your own stripped down project so that I can try reproducing the same behavior at my end and assist you further accordingly?
Also, please explain If I am missing something.
Thanks.
rpt_Chart.zip -
Posted 25 January 2019, 6:44 am EST
Please find the attached report.
After putting the chart when we create and preview it from designer the chart is coming full size. The moment we render it from code and generate the pdf the chart is becoming tiny.That data repo is not present so sending it to you using the Facebook repository.Demo.zip
-
Posted 28 January 2019, 2:57 am EST - Updated 30 September 2022, 5:52 pm EST
Hello Debojyoti,
Still, I am unable to reproduce the issue at our end. Please refer to the attached image.
I have using the following export code to export the report:// Provide the page report you want to render. System.IO.FileInfo rptPath = new System.IO.FileInfo(@"..\..\PageReport1.rdlx"); GrapeCity.ActiveReports.PageReport pageReport = new GrapeCity.ActiveReports.PageReport(rptPath); // Create an output directory. System.IO.DirectoryInfo outputDirectory = new System.IO.DirectoryInfo(@"C:\MyPDF"); outputDirectory.Create(); // Provide settings for your rendering output. GrapeCity.ActiveReports.Export.Pdf.Page.Settings pdfSetting = new GrapeCity.ActiveReports.Export.Pdf.Page.Settings(); // Reduce the report size and report generation time. pdfSetting.OptimizeStatic = true; // Set the rendering extension and render the report. GrapeCity.ActiveReports.Export.Pdf.Page.PdfRenderingExtension pdfRenderingExtension = new GrapeCity.ActiveReports.Export.Pdf.Page.PdfRenderingExtension(); GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider outputProvider = new GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider(outputDirectory, System.IO.Path.GetFileNameWithoutExtension(outputDirectory.Name)); // Overwrite output file if it already exists outputProvider.OverwriteOutputFile = true; pageReport.Document.Render(pdfRenderingExtension, outputProvider, pdfSetting);
Could you please share the code snippet of export code.
Thanks.