Skip to Content
0

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

Apr 20 at 06:20 PM

68

avatar image
Former Member

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" />

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Don Williams
Apr 20 at 06:22 PM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Don,

Thanks for reply.

Crystal report are on different server and database also will be on the same server so if i will give permission to access that folder to my web application server but will crystal report load properly ?

0

Lots of people are doing this. Try something first, you can find all sorts of samples here:

https://wiki.scn.sap.com/wiki/display/BOBJ

Look in CR section

0