Skip to Content
author's profile photo Former Member
Former Member

Crystal reports displaying a blank page.


I have a VS2010 MVC project. Created Crystal Reports and programatically used the code as below..

This works fine when running on my local machine..

ReportClass rptH = new ReportClass();TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();ConnectionInfo crConnectionInfo = new ConnectionInfo();Tables CrTables;fileName = Path.Combine(crystalReportPath, "Test.rpt");rptH.FileName = fileName;rptH.Load();rptH.Refresh();crConnectionInfo = ReportServ.GetCrystalReportConnection();CrTables = rptH.Database.Tables;foreach (CrystalDecisions.CrystalReports.Engine.Table crTable in CrTables){    crtableLogoninfo = crTable.LogOnInfo;    crtableLogoninfo.ConnectionInfo = crConnectionInfo;    crTable.ApplyLogOnInfo(crtableLogoninfo);}rptH.SetParameterValue("@p_year", pYear);Stream stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
return File(stream, "application/pdf");

Set the Test.rpt file Build Action to "Content", created a SetUp project and deployed the MSI package onto the server.

The server is a Win2003 server, where "CRRuntime_32bit_13_0_6.msi" package has been installed.

All the stored procedures and database tables are set up correctly.

On the click of the button the above code runs and displays a blank page..

Have been scouring through the forums but not able to find a solution.

Any help is very much appreciated..



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 27, 2013 at 10:07 PM

    Since you are getting a blank page, I'd say that the logon is successful. But there is either no data found, or the particular user has no rights to see that data.

    So, try the following;

    logon as someone else (Admin as a test may be best)


    Download CR 2011 eval from here:

    then open the report in the CR 2011 designer and log on with the same credentials as you use in the app. Does that work?

    - Ludek

    Senior Support Engineer AGS Product Support, Global Support Center Canada

    Follow us on Twitter

    Got Enhancement ideas? Try the SAP Idea Place

    Share Your Knowledge in SCN Topic Spaces

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.