load crystal report from client machine


I work for a large organisation and they have tasked me to make a website for the display of there crystal reports. I am not authorized to upload the reports to the server so I must get Crystal Report viewer to read from the clients local machine C:\GISDATA\Reports\....rpt. how can i do this as the app thinks I am referencing a file from the c:\ on the server..???

5/5/2009 4:11:56 AM
asp.net.crystal-reports 7043 articles. 0 followers. Follow

3 Replies

Similar Articles

[PageSpeed] 22
Get it on Google Play
Get it on Apple App Store

 Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared

Partial Class _Default
    Inherits System.Web.UI.Page
    Private northwindCustomersReport As ReportDocument

    Private Sub ConfigureCrystalReports()
        Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
        myConnectionInfo.DatabaseName = "Northwind"
        myConnectionInfo.UserID = "sa"
        myConnectionInfo.Password = ""
        myConnectionInfo.ServerName = "."

        northwindCustomersReport = New ReportDocument()
        '  Dim reportPath As String = Server.MapPath("NorthwindCustomers.rpt")
        'Check The Line Below I have used Localhost To load the crysal Report
        'sample I have used is "VB_Web_RDObjMod_DBLogon"
        'which Can Be found inside the follwing path
        'C:\Program Files\Microsoft Visual Studio 8\Crystal Reports\Samples
        'For clinet U will Require It website name in wthich the Reports are located in It..


       Dim reportPath As String = ("http://localhost/CrystaRport_From_IP/NorthwindCustomers.rpt")

        myCrystalReportViewer.ReportSource = northwindCustomersReport
        SetDBLogonForReport(myConnectionInfo, northwindCustomersReport)
    End Sub

    Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo, ByVal myReportDocument As ReportDocument)
        Dim myTables As Tables = myReportDocument.Database.Tables
        For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables
            Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo
            myTableLogonInfo.ConnectionInfo = myConnectionInfo
    End Sub

    Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

    End Sub
End Class

Avinash Tiwari

Remember to click “Mark as Answer” on the post, if it helps you.
5/5/2009 5:12:03 AM
       Dim reportPath As String = ("http://localhost/CrystaRport_From_IP/NorthwindCustomers.rpt")
Priority:: Hey there and thanks for your reply.. Um I do not think that will work.. these machines will not be set up with IIS so I don't understand how using http://localhost/ will work and on top of that how will it reference the required folder??? all it needs to do is read a report from the users C:\ which is where the report resides..(not on the server) Extra:: I have also been considering the possibility that the user will not have the required reports on there machine so I think I will need a download to occur on pageload that the reports will download to that directory.. C:\GISDATA\Reports\. how can I achieve this??
5/5/2009 6:44:41 AM


Local Host I have used....

U have use IP address of Clinet and Keep The Reports on Web Accesable Folder....

Your Path Would be http://<clinet Ip Addres>/<web Acessable foldr>/<Report Namer>

and Local U r talking I have Created Virtual Dir on Folder Which was Containg Path on Differnt Path Example: -

I have Kept report on D:/testReport/Report/Customerrept.rtpt..

and My Application was in differtn Folder..

Rather than Using Absolute OPath ex :D:///

I ahev use dRelative Path ex :=http://localhost/

Avinash Tiwari

Remember to click “Mark as Answer” on the post, if it helps you.
5/5/2009 7:11:23 AM

Similar Artilces:

Converting Crystal Reports 9 report to Crystal Reports .NET report
I have a web page that is supposed to display a crystal report.  The report is fully written and functional in crystal 9 (non-.Net)  .  Is there a way to convert my .rpt so that I can just include it in the new web site? why you don't try to compile project with .net and include your report. then if crystal report is power tool will suggests you with conversation tool    My blog is here.Please remember to 'Mark as Answer' if this post answered your question! Wow it really was that easy!  I just added the old crystal report into my .NET proj...

crystal reports .net -> crystal reports .net 2003
recently converted a project from .net to .net 2003. The 2 crystal reports I had in the project do not load when executing the application. The project itself within 2003 will allow me to multiplat the crystal reports, however when it comes to execution time I get the error: Invalid Data Source. If this isn't the right forum please point me to the right one as this is really the only website I know of with a large reader base. >to multiplat the crystal reports To what the crystal reports? Do you have the same database connections established and verified in your 2003 s...

integration of Crystal Report with .NET ; crystal report viewer not displaying in Toolbox
Hi I m new to Visual Web Developer 2005 Express Edition. I want to integrate Crystal Report with .NET. In my Toolbox , Crystal Report Viewer is not displaying. How to make it possible? + How to call my report from asp.net 2.0. Need source code plz.*Share Knowledge Every TIME Crystal Reports for .NET does not come with VWD Express.  It only comes with VS 2005 Professional (I'm not sure about the Standard edition).If you have Crystal Reports 10 or XI, you can installed the .NET libraries for Crystal and then use them within VWD Express, noting that you have to build your reports ...

VS .net 2005 Crystal reports ok to run on Crystal Reports XI?
I am getting mixed messages from the asp.net website hosting providers - some say they do not support Crystal Reports due to a $25,000 per cpu licensing fee, others say all I need to do is install Crystal Reports XI (about $500) on a dedicated server and it will run fine. Will Reports developed with the embeded Crystal Reports in VS 2005 run in a Crystal Reports XI environment? Thanks....

Cassini, VS.Net and Crystal Reports
Hi,I am working with Win XP home, Cassini and VS.Net.I would like to play with some Crystal Reports.I create the report in VS as CrystalReport1.I put a CrystalReportViewer on my web form. It does not get recognized as a defined object type but there are no build errors.When I run the app I get an error: Type 'CrystalReport1' is not defined.I have googled on this and see several things people have suggested/tried to correct this. Most I have already tried or the suggestions are not very clear to me. Then I came across a msg that instructed me to set up virtual directories for IIS for CrystalR...

Export Crystal Report to Crystal Report format
I looked at some sample code provided by crystaldecisions, and they have the ability to export a web crystal report to a crystal report. I was assuming that this would cause the local instance of Crystal reports on the client machine to be invoked. I tried this in my project, and I get the following error: Error Encountered by Crystal Web Report Server -------------------------------------------------------------------------------- The error message returned is: Connection to Report Server Failed. It creates the file as an .rpt file in the directory it should. Do I need a dif...

Load Report Failed
Hi,  I am using the built in Crystal Report in VS.NET 2005. I followed 2 examples which seem to work until I run the crystal report, then receive "Load Report Failed" on top of the crystal report......   I have selected the table required, and put only 3 fields on the Crystal report, and made its report source my report.rpt, and in the Page_load event, put in databind() I obviouly put the crystalreportviewer on an aspx page first. But gives me the"Load report Failed" Why ? Can anyone assist please ?  Im using an access database Could it be becaus...

Crystal Report
HiI am using VS 2003 framework 1.1in my asp.net application crystal report run fine in my PC.But on demo server it will giving error,Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Load report failed.Stack Trace:[LoadSaveReportException: Load report failed.]   .I(String , EngineExceptionErrorID ) +272   .E(String , Int32 ) +56   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) +1262   CrystalDecisions.CrystalReports.Engine.ReportCla...

Crystal Report : Load report failed.
Hi all, I have a problem showing a CR's report in an aspx file. The report use an Ms Access table as datasource and it works fine, I mean when I click on the "Main Report Preview" button the report is displayed correctly. And I still get the error "Load report failed." when trying to show it in an aspx file using CrystalReportViewer. Here is my code : 1   <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 2           AutoDataBind="True" Height="50px" ...

"Load Report Failed."
Hi Everyone, I have developed a report in VS2005 (On a Vista PC, in case that's relevant). In the report designer, I switch to "Main Report Preview" and the report shows up fine - it get the data from the database and displays perfectly. I tried to add a page to display the report in my app.  I added a crystal report viewer and a Crystal Report Source.  The report displays fine in design view.  However, when I run the app, all I get is "Load Report Failed". Please see the code below:<%@ Page Language="C#" M...

Are there other reporting tools other than reporting services and crystal reports
Has anyone had any experience with any reporting tools other than Reporting services and Crystal reports? If so, is there one that you would strongly recommend? Or, are these two the top choice on the market for report generation from .NET? I have heard some moaning and groaning about reporting services. Specifically in regards to the amount of time needed to design a report. Crystal reports seems kind of difficult to me, as I don't have any training with it. Basically I am looking for a reporting tool that is easy to use, and can be used from .NET....

Load Report Failed
Hi Experts I have weird problem on my production server, i receive error message running report "Load Report Failed". The issue is that i receive the error message any few hours, intially report load fine but when users access report simultaneously the load report fails. Is it something like the report file (*.rpt) getting locked. I would really appreciate if someone can help me resolve the issue ASAP. Kind Regards Bhavesh   There is a default of 75 ReportDocument objects to be open at one time. To prevent this from happenning, make sure that you close and dispo...

Crystal Reports .Load() very slow on one report.
My application has one report that loads significantly slower than all of the others.  The only difference is that it contains a sub-report in the footer, but other than that it is not a complex report.This is the line that is taking 25 seconds the first time a user prints the report: (All other reports take less than a second for the same line.)l_objReport.Load(l_sPath);Are there any issues to watch out for that would cause such a slow load?  This, btw, is prior to the report being given its data source... I have the same problem, several reports which all use the same dataset a...

Crystal Reports Problem Load Report Failed
I've got problem whit Crystal Reports  my  Code is <code><form id="Form1" method="post" runat="server">   <cr:CrystalReportViewer    runat="server"    id="CrystalReportViewer1"      Width="1030px" Height="1073px"   ReportSource= '<%# "D:\Grafici\test.rpt" %>' >   </cr:CrystalReportViewer>  </form></code>Please review the stack trace for more information about the error and where it originated in the code. Exception Details: C...

Web resources about - load crystal report from client machine - asp.net.crystal-reports

Crystal - Wikipedia, the free encyclopedia
This article is about crystalline solids. For the type of glass, see Lead glass . For other uses, see Crystal (disambiguation) . A crystal or ...

Wellington, the town in NSW where crystal meth costs less than beer
One NSW town is so overrun by the drug ice that it is known as &quot;little Antarctica&quot;, and police say children as young as 10 are experimenting. ...

Steve McClaren irate after Newcastle United's humiliating loss to Crystal Palace
Steve McClaren will haul his embattled Newcastle squad in for an extra training session on Sunday following their humiliating defeat at Crystal ...

This crystal clear Speck case will actually protect your iPhone 6s
... protection for your iPhone. Well, the BGR Deals team has the perfect solution: The Speck Products CandyShell Case for iPhone 6/6S , is crystal ...

Former CIA Chief Morell: ‘Crystal Clear’ Obama’s ISIS Strategy Is Not Working
Former CIA Chief Morell: 'Crystal Clear' Obama's ISIS Strategy is Not Working

Crystal Lake man, 18, killed kitten over fight about bong: prosecutor
The 18-year-old man accused of killing a kitten with his bare hands had become enraged during an argument with his sister over a bong, a prosecutor ...

CEO: My 'crystal ball' is smoky
Here's what is keeping Corporate America on the sidelines, according to Waste Management CEO David Steiner.

Casey Wilson & June Diane Raphael Set Elizabeth Laime Comedy ‘Crystal’ At ABC
... duo, USB alums June Diane Raphael and Casey Wilson , have teamed with comedy writer/podcaster and fellow USB-er Elizabeth Laime for Crystal ...

Moon ring caused by iced crystals - FOX Carolina 21
... their heads to the sky for a better look. The moon has a ring around it! Meteorologist Kendra Kent says the ring is caused by ice crystals ...

The Crystal Gems Are Cuter Than Ever in Funko's Amazing Steven Universe Toys
We’ve known for a while that the delightful Steven Universe would be getting some long-awaited merchandise , and now we have our first look at ...

Resources last updated: 11/30/2015 8:24:36 PM