Page 1 of 1

Export report to PDF/A format

Posted: Mon Sep 05, 2011 3:36 am
by im
I am trying to export a report to PDF/A format using this code:

Stimulsoft.Report.StiReport report = new StiReport();
report.RegData(dataSet1);
report.Load(strRapportmalkatalog + "\\protokoll.mrt");
report.Render(true);
report.Show(true);

Then, when im ready to export, the code looks like this:

report.ExportDocument(StiExportFormat.Pdf, filename);

But this is just Pdf and not PDF/A. I am using version 2011.1.1000.0 of the library, and the only place i can see PDF/A is in the report previewer. But I need to do this in the code.

Export report to PDF/A format

Posted: Tue Sep 06, 2011 8:30 am
by Ivan
Hello,

Please use the following code for export report:

Code: Select all

            StiPdfExportSettings settings = new StiPdfExportSettings();
            settings.PdfACompliance = true;
            rep.ExportDocument(StiExportFormat.Pdf, filename, settings);
Thank you.

Export report to PDF/A format

Posted: Wed Sep 07, 2011 4:47 am
by im
I will try that, thank you.

Export report to PDF/A format

Posted: Wed Sep 07, 2011 8:53 am
by Andrew
Hello,

Ok! Let us know about the result.

Thank you.