ExportDocument is slow

Stimulsoft Reports.WEB discussion
Post Reply
jalal_logitude
Posts: 13
Joined: Wed Dec 18, 2013 1:03 pm

ExportDocument is slow

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ExportDocument is slow

Post by Alex K. »

Post Reply