473,657 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
+ 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.Repo rtSource = "J:\Learning\CM P 214\Crystal Test\CrystalTes t
\CustomersBasic .rpt
to point to the file directly it works.

If I use
Me.cvwMain.Repo rtSource = 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 2580
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***@optonlin e.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.Repo rtSource = "J:\Learning\CM P 214\Crystal Test\CrystalTes t
\CustomersBasic .rpt
to point to the file directly it works.

If I use
Me.cvwMain.Repo rtSource = 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
CrystalReportVi ewer.ReportSour ce 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******** ******@tk2msftn gp13.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***@optonlin e.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.Repo rtSource = "J:\Learning\CM P 214\Crystal
Test\CrystalTes t \CustomersBasic .rpt
to point to the file directly it works.

If I use
Me.cvwMain.Repo rtSource = 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
19160
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 Report at runtime? Example: private void button1_Click(object sender,
1
5831
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 which is an OLE Object located in the Page Header section of my .RPT file. This is the call which works perfectly in VB6 to format the crystal reports Page Header section of my report file EquipLst.rpt.
2
1253
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. Throughout the project I'm working on, I often find I need a temporary table displayed in a report, something that I cannot seem to do. Since temporary tables are so useful, I cannot imagine Crystal Reports wouldn't have a way to get such
3
6906
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
7143
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, C#, and SQL. The book is excellent. Undaunted, I have plowed into a conversion of my old COBOL ERP system, MCS-3, into C#. I have quite a bit of Inventory Control done and working. For reports I am trying to use CR. I have a half a dozen of them...
5
12827
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 "cr_rdc9_connectionproperties.pdf" on the Crystal support web site I should be able to do the following: Dim ConnectionInfo As CRAXDRT.ConnectionProperties I get a "Type CRAXDRT.connectionProperties is not defined" error from the VS designer when I enter the...
17
8434
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 using crystal reports 9 and vb.net and we're using the crystalrepotViewer to show our reports. But every time we open a report the connection to or sql server remains, so if I open 5 forms with the report viewer I've got 5 sleeping connections in...
0
1727
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 parameters.Now my first question is how do i set datatable as my report source and my 2nd question is how to pass parameters.Although i have attempted to do this by the below mentioned code. // Making report instance ...
2
446
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 interested in using crystal reports as a web based reporting tool to get data out of a sql server database and we have always created our own bespoke reporting tools but this particular client wishes to go down the crystal reports route. 1) We...
0
8829
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8734
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8508
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8608
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7341
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5633
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2733
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 we have to send another system
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1627
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.