Last post Jan 24, 2012 06:37 AM by Gelpack
Jan 17, 2012 06:05 AM|Gelpack|LINK
I know this had been reported around the net before but I cant seem to find a solution which works. When I run a report from the server first time around it takes about 1-2 minutes to render the page and thereafter it is pretty quick. I read that there are
two potential issues.
Any help resolving this would be appreciated.
1.) that it attempts to read certificates from the net so I have tried with no effect.
2.) That the framework components for crystal have to load first time so I tried this with no effect in ApplicationStart event
in an attempt to coax the framework to load.
protected void loadCrystal()
CrystalDecisions.CrystalReports.Engine.ReportDocument crReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
// Need to preload crystal engine so the reports will print quickly throughout the rest of the application.
//This report is not used, it is just loaded. Testing so far 12/23/04 has not shown any
//problems such as memory or print errors.
var reportpath = Server.MapPath("~/CrystalReports/blank.rpt");
crReport.Load( reportpath) ;
CrystalDecisions.Shared.PdfRtfWordFormatOptions pdfOptions = CrystalDecisions.Shared.ExportOptions.CreatePdfRtfWordFormatOptions();
CrystalDecisions.Shared.ExportOptions expOptions = new CrystalDecisions.Shared.ExportOptions();
CrystalDecisions.Shared.DiskFileDestinationOptions diskOptions = new CrystalDecisions.Shared.DiskFileDestinationOptions();
expOptions.ExportDestinationOptions = diskOptions;
expOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
expOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile;
crReport.Export( expOptions );
catch( Exception ex )
Jan 23, 2012 09:41 PM|necro_mancer|LINK
do you host this report on a shared server or do you run your own dedicated server?
Jan 24, 2012 06:37 AM|Gelpack|LINK
I use a dedicated server. I am currently getting around it by scheduling a page to be opened every 30 minutes during working hours, this solves it but not in the best way.