473,396 Members | 1,965 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.

Crystal reports question - expounded

Okay, after spending the past 4 1/2 hours trying to figure this out I am
getting some answers but I am also getting very frustrated. And again, if
this is the wrong forum to post to I apologize.

Why can I not use Crystal Reports to show data from a simple dataset?

The problem I have is that when the report tries to access the data, I get a
database login screen. It was suggested I use ODBC instead of OleDB (as I
have been using - it is an Access db). I converted all connections,
adapters and the dataset to ODBC. I still am getting the database login.

I tried connecting the report to a view (query) in Access and lo and behold,
that does work. However, I do not want the user to have to actually open up
Access, change the parameters in the Access query and then go back and run
the report.

What I want this to do is have the report use a dataset that is filled by
one of three parameterized adapters (the adapter is selected using a select
case statement). Doesn't this sound simple enough?

Maybe I am missing a step somewhere?

Thanks for any help.

Brad
Nov 20 '05 #1
1 1388
I feel you pain. :^)

http://support.businessobjects.com/c...tasets.pdf.asp

This how-to looks like it only for ASP.NET and Access database but it shows
some basics.

I just struggled through this myself last night.

Here is what I have found:

First you need to a typed dataset, an .XSD file. You can either make this
manually, by doing Add->Add New Item->Dataset Or if you already have a
dataset populated in code, add some code to write it to disk as an XSD file
(WriteXML method of dataset?). You use this as your schema definition when
designing the report.

Second, Add a new Crystal Report to project (for example CrystalReport1).

Now use that typed datset as the datasource when designing your Report.
When picking your datasouce, look under Project Data->ADO.NET Datasets. You
should see your just created XSD file (if you saved it to disk, don't forget
to inlcude it in project, show all files->Inlucde In Project)

Then use this code to display it:

Dim ds As DataSet ' or you Type Dataset class name here if you want

' fill your dataset

Dim oCrystalReport As New CrystalReport1
oCrystalReport.SetDataSource(ds)

ReportViewer.ReportSource = oCrystalReport
HTH,
Greg
"Brad Allison" <ba******@ukcdogs.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Okay, after spending the past 4 1/2 hours trying to figure this out I am
getting some answers but I am also getting very frustrated. And again, if
this is the wrong forum to post to I apologize.

Why can I not use Crystal Reports to show data from a simple dataset?

The problem I have is that when the report tries to access the data, I get a database login screen. It was suggested I use ODBC instead of OleDB (as I
have been using - it is an Access db). I converted all connections,
adapters and the dataset to ODBC. I still am getting the database login.

I tried connecting the report to a view (query) in Access and lo and behold, that does work. However, I do not want the user to have to actually open up Access, change the parameters in the Access query and then go back and run
the report.

What I want this to do is have the report use a dataset that is filled by
one of three parameterized adapters (the adapter is selected using a select case statement). Doesn't this sound simple enough?

Maybe I am missing a step somewhere?

Thanks for any help.

Brad

Nov 20 '05 #2

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...
5
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
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)
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
0
by: Robert Warnestam | last post by:
Hello, I have some problems deploying Crystal Reports. I'm using Visual Studio 2005 Beta 1. In this version Crystal Reports (9.7.3500.0) is included. I created a small test application...
3
by: VMI | last post by:
I know this may not be the best NG for this, but I feel you guys know more about this than any of the other NGs. I need to build several simple reports (over 50 of them and they get their data...
1
by: Lyners | last post by:
Hello all, I have created an ASP.NET website that uses Crystal Reports that works on the localhost (my PC), but when I copy it to the server it does not. The problem is...
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
1
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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
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.