Link to home
Start Free TrialLog in
Avatar of Collindsouza
CollindsouzaFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Example Crystal Reports from within a ASP.NET Application

I have certain number of reports that are developed using Crystal Reports 11..

How can i access these reports from within a webpage.. i mean within my ASP.NET Application... I'm using VS2005 with C# code behind and SQLServer backend

I mean Crystal report developers will design and develop reports and will then post is to a certain forder in the server.. what i want to do is to provide a hyperlink with a report name... so that when this hyperlink is clicked..I want to then open up a report from the given location where these files physically exists..

Any help in this regard will be greatly appreciated!!!!

Thanks,
Collin
Avatar of rugu_16
rugu_16

hi

you will have to use crystal methods.

using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;

ReportDocument r = new ReportDocument();
r.Load(reportPath);

MemoryStream ms;
// pdf format
ms= (MemoryStream)r.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);

you can use couple of these functions.

Rugved
Avatar of Collindsouza

ASKER

HI rugu

I found the solution to my problem..

its something like this..

load a Crystal Reports View in a WebPage and then in the page load
Set
CrystalReportViewer1.ReportSource = physical path of the report..

Thanks for your help

Collin
ASKER CERTIFIED SOLUTION
Avatar of DarthMod
DarthMod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial