Solved

Example Crystal Reports from within a ASP.NET Application

Posted on 2006-11-08
4
466 Views
Last Modified: 2008-01-09
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
0
Comment
Question by:Collindsouza
4 Comments
 
LVL 3

Expert Comment

by:rugu_16
ID: 17900305
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
0
 
LVL 5

Author Comment

by:Collindsouza
ID: 17985963
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
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 18106344
Closed, 500 points refunded.
DarthMod
Community Support Moderator
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now