473,472 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Crystal Reports Assigning Report Source

I'm having trouble assigning the reportsource value at run time. I'm
running a test setup, one form with only a Crystal Viewer, called cvwMail.
My report is called CustomersBasic.rpt and it draws directly from the
TradeWinds.MDB test database.

If I use
Me.cvwMain.ReportSource = "J:\Learning\CMP 214\Crystal Test\CrystalTest
\CustomersBasic.rpt
to point to the file directly it works.

If I use
Me.cvwMain.ReportSource = New CustomersBasic
to instantiate a new object of the report I get an error of "Invalid Report
Source".

All the references on usenet say this should work, so I must be missing
something silly. Can anyone see what is wrong?

Thanks,
Bernie

Mar 25 '06 #1
2 2570
Bernie,

Did you look for this already on our website.

http://www.vb-tips.com/default.aspx?...1-e779bfb411c5

I hope this helps,

Cor
"Bernie Hunt" <bh***@optonline.net> schreef in bericht
news:Xn*******************************@207.46.248. 16...
I'm having trouble assigning the reportsource value at run time. I'm
running a test setup, one form with only a Crystal Viewer, called cvwMail.
My report is called CustomersBasic.rpt and it draws directly from the
TradeWinds.MDB test database.

If I use
Me.cvwMain.ReportSource = "J:\Learning\CMP 214\Crystal Test\CrystalTest
\CustomersBasic.rpt
to point to the file directly it works.

If I use
Me.cvwMain.ReportSource = New CustomersBasic
to instantiate a new object of the report I get an error of "Invalid
Report
Source".

All the references on usenet say this should work, so I must be missing
something silly. Can anyone see what is wrong?

Thanks,
Bernie

Mar 25 '06 #2
Yes I did. That was what I started with. The error is still "Invalid
Report Source". I'm thinking it may be something in my developement
environment.

I'm going to have to figure out how to interrogate the
CrystalReportViewer.ReportSource to see the difference between it working
with a hard coded report location vs a setting the location on the fly.

Bernie
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in
news:uS**************@tk2msftngp13.phx.gbl:
Bernie,

Did you look for this already on our website.

http://www.vb-tips.com/default.aspx?...-8a81-e779bfb4
11c5

I hope this helps,

Cor
"Bernie Hunt" <bh***@optonline.net> schreef in bericht
news:Xn*******************************@207.46.248. 16...
I'm having trouble assigning the reportsource value at run time. I'm
running a test setup, one form with only a Crystal Viewer, called
cvwMail. My report is called CustomersBasic.rpt and it draws directly
from the TradeWinds.MDB test database.

If I use
Me.cvwMain.ReportSource = "J:\Learning\CMP 214\Crystal
Test\CrystalTest \CustomersBasic.rpt
to point to the file directly it works.

If I use
Me.cvwMain.ReportSource = New CustomersBasic
to instantiate a new object of the report I get an error of "Invalid
Report
Source".

All the references on usenet say this should work, so I must be
missing something silly. Can anyone see what is wrong?

Thanks,
Bernie



Mar 25 '06 #3

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

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
1
by: Ron Holmes | last post by:
I posted this question on the Crystal Reports Support site and I am still waiting for an answer. Using Crystal Reports 9.0 Developer Full edition: My Crystal report .RPT file has a Picture box...
2
by: airkart | last post by:
Hello, I've scoured groups and the web, and haven't found a question like mine answered. I'm using Visual Studio 2003 with the Crystal Reports it comes bundled with and SQL Server 2000....
3
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
9
by: Robert Schuldenfrei | last post by:
Hello NG, After a bit of a wait my bookstore, SoftPro of Waltham, MA, got in the Brian Bischof book: Crystal Reports .NET Programming. I have read a few books on CR, but I am very new to it,...
5
by: Henry | last post by:
I am writing a Windows forms VB.Net/MS SQL application that utilizes Crystal Reports. I want to be able to dynamically set the report data source at run time. According to article...
17
by: Peter Proost | last post by:
Hi Group, I've got an interesting problem, I don't know if this is the right group but I think so because everything I've read about it so far says it's a .net problem. Here's the problem, we're...
0
by: faisalmushtaq | last post by:
Hello to all brains, i am relativly new to this programming world and i need tons of favor from u guys.My problem i want to use a dataset's table as my report source.Report also takes some other...
2
by: =?Utf-8?B?Um9zcyBNYXNvbg==?= | last post by:
Hi I am interested in using crystal reports for the first time but have a few questions that someone maybe able to help with before I get started. The background to my query is that a client is...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.