Skip to Content
avatar image
Former Member

How to Load crystal report from different server in the crystal report viewer in asp.net application

I have asp.net application that is hosted in the cloud and web application server and crystal reports that is created and stored in different dedicated server.

I want to load crystal report file from the different server and display in the crystal report viewer in asp.net web application.

How i can load the report file from the different server?

Load Report file code (Local)

var path = "D:\\TestReport\\SampleJobReport.rpt";

ReportDocument cryRpt = new ReportDocument();

cryRpt.Load(path);

reportViewer.ReportSource = cryRpt;

Crystal Report Viewer

<CR:CrystalReportViewer ID="reportViewer" runat="server" HasCrystalLogo="False" RefreshReport="true" AutoDataBind="True" Height="50px" EnableParameterPrompt="true" EnableDatabaseLogonPrompt="true" ToolPanelWidth="200px" Width="350px" ToolPanelView="ParameterPanel" ReuseParameterValuesOnRefresh="True" />

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 20 at 06:22 PM

    Change you var path and point to the new location, it will require you to give permission to the folder.

    Add comment
    10|10000 characters needed characters exceeded