ExportDocument is slow
Posted: Wed Jan 22, 2014 2:23 pm
Dears,
I am using the following code :
But when file is big, ExportDocument method is so slow ?!
any ideas ?
Regards,
Jalal Khalil
I am using the following code :
Code: Select all
using (Stream blobstream = blobfile.OpenWrite())
{
StiPdfExportSettings pdfSettings = new StiPdfExportSettings();
pdfSettings.ImageResolution = 300;
pdfSettings.ImageQuality = 100;
pdfSettings.ImageCompressionMethod = StiPdfImageCompressionMethod.Jpeg;
using (MemoryStream memStream = new MemoryStream())
{
report.ExportDocument(StiExportFormat.Pdf, memStream, pdfSettings);
blobstream.Write(memStream.ToArray(), 0, (int)memStream.Length);
}
}
any ideas ?
Regards,
Jalal Khalil