But when I run site works.
When I mark the PDF / A Compliance option running on Azure can view the PDF.
Is there any way to programmatically C # to leave this option checked?
Code: Select all
try
{
StiReport stirep = new StiReport();
string caminho = Server.MapPath("");
var docReport = caminho + "\\rptTeste.mrt";
stirep.Load(caminho + "\\rptTeste.mrt");
docReport = stirep.ToString();
stirep.Dictionary.Databases.Clear();
stiPdfExportSettings.PdfACompliance = true;
stirep.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("dataDB", SessionCnn.ConnectionString));
stirep.ReportAlias = "Certificado-" + SessionParticipante.NuCPFCNPJ;
stirep.Compile();
stirep.Render();
StiWebViewer1.Report = stirep;
}
catch (Exception ex)
{
throw ex;
}