473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Want Shorter (Generic) Path Argument For Load Crystal Reports Using Visual Basic 8

How do I do a Load with the default CrystalReport1.rpt file location
that VB gives me?I.E.: This file is created by VB, but I have to
specify it in the Load. The key question is I do not want to use the
full path to the file. I want to move the entire folder around and I do
not want to have to change the Load argument when I move it. I want a
simple way to refer to the report in the "Load" without having to
change the "Load" method call when I move the folder.

Does your solution involve physically moving the report file to a
different location?

'Below runs perfectly
Dim CrystalReport1 As New ReportDocument

CrystalReport1.Load("C:\Documents and
Settings\lusardicm\Desktop\EMPLOYEE
DATABASE\Employee_Database_Program\Employee_Databa se_Program\CrystalReport1.rpt")

'Below does not work
Dim CrystalReport1 As New ReportDocument

CrystalReport1.Load("CrystalReport1.rpt")

Visual Basic tells me when I run it:

System.Exception was unhandled
Message="Load report failed."
Source="CrystalDecisions.CrystalReports.Engine"
Thanks,
Christopher Lusardi

Jun 6 '06 #1
0 1473

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dr. Indera | last post by:
hello, i previously posted the questions below on several crystal reports newsgroups, including the one for the company that makes crystal reports, but never got an answer, so i'm hoping that...
6
by: Dr. Indera | last post by:
hello, much to my surprise, the version of crystal that comes with visual studio.net 2003 does not have a report preview window. i found out that i have to build a form in visual basic.net and...
2
by: Phil | last post by:
There's a Crystal Reports hot fix for a particular but that I am experiencing in .NET -- DIV's get screwed up when you embed a Crystal Report in a web page. The bug is ADAPT00170558, the patch is...
2
by: http://www.visual-basic-data-mining.net/forum | last post by:
Hi, I wrote a program in VB.Net 2003. The program includes some reports made with Crystal Reports for Visual Studio.Net 2003. On my computer (with Win XP Pro) the program runs as it should do. ...
4
by: Wendy Elizabeth | last post by:
I would like to know how to print a crystal report that was generated in the ..NET framework using a Visual Basic.NET web application and/or a Visual basic.NET windows application. When crystal...
182
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
0
by: Mark Gold | last post by:
Hi! We have a VB application using Crystal Reports 6 that has worked successfully on hundreds of systems for over 10 years. Now, on one network, the application and access database does not close....
6
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
4
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.