Print Page | Close Window

filenotfound exception

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=14613
Printed Date: 19 May 2024 at 10:52am


Topic: filenotfound exception
Posted By: as.yanev
Subject: filenotfound exception
Date Posted: 06 Oct 2011 at 11:47pm
Hi guys,
I have some strange problem with starting my application on computer without Visual Studio. The app is written with Studio 2005 Pro and the Crystal Report Part is just a simple Form with crystalreportviewer object. The Reports are stored in folder on the local computer and the start button code is something like this:

            ReportDocument cryRpt = new ReportDocument();
            cryRpt.Load(reportPath);
            crystalReportViewer1.DisplayBackgroundEdge = true;
            crystalReportViewer1.DisplayStatusBar = true;
            crystalReportViewer1.DisplayToolbar = true;
            crystalReportViewer1.ReportSource = cryRpt;
            crystalReportViewer1.Refresh();


It's working fine on my computer, but on test computer it gives Send/Don't Send Message:

EventType : clr20r3     P1 : documentator.exe     P2 : 1.0.0.0    
P3 : 4e8c5e33     P4 : documentator     P5 : 1.0.0.0     P6 : 4e8c5e33    
P7 : 7     P8 : 6     P9 : system.io.filenotfoundexception   


Thanks in advance
...



-------------
Always aim for the moon, even if you miss, you'll land among the stars...



Print Page | Close Window