Page 1 of 1

ExportDocument is slow

Posted: Wed Jan 22, 2014 2:23 pm
by jalal_logitude
Dears,

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);
                        }

                    }
But when file is big, ExportDocument method is so slow ?!

any ideas ?

Regards,
Jalal Khalil

Re: ExportDocument is slow

Posted: Thu Jan 23, 2014 6:25 am
by Alex K.