Pictures not appearing in PDF report
Posted: Mon May 13, 2013 4:46 am
Hi
When we embed pictures in the report, and then run .ResponseAsPdf we seem to lose the pictures in the pdf file.
Any ideas why this might happen?
Below is the code we use.
Thanks
// Standard export settings for a unicode based reports of any language
var settings = new StiPdfExportSettings()
{
UseUnicode = true,
StandardPdfFonts = false,
EmbeddedFonts = true
};
// sets the correct layout
SetLayoutForPrint(rep, rvRequest.ReportParameters);
// if errors are raised on rendering it may be necessary to add a try/catch
rep.Render(false);
// Respond with generated PDF
StiReportResponse.ResponseAsPdf(this, rep, false, settings);
When we embed pictures in the report, and then run .ResponseAsPdf we seem to lose the pictures in the pdf file.
Any ideas why this might happen?
Below is the code we use.
Thanks
// Standard export settings for a unicode based reports of any language
var settings = new StiPdfExportSettings()
{
UseUnicode = true,
StandardPdfFonts = false,
EmbeddedFonts = true
};
// sets the correct layout
SetLayoutForPrint(rep, rvRequest.ReportParameters);
// if errors are raised on rendering it may be necessary to add a try/catch
rep.Render(false);
// Respond with generated PDF
StiReportResponse.ResponseAsPdf(this, rep, false, settings);