473,770 Members | 5,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1408
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(d s)

ReportViewer.Re portSource = oCrystalReport
HTH,
Greg
"Brad Allison" <ba******@ukcdo gs.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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
19182
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,
5
3026
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 for reporting purposes and am wondering if anyone knows if this is easily accomplished using the .NET version of Crystal Reports? For example, the description column may be reporting on a dataentry error as follows: TXNCODE: 1010001
3
6917
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
5024
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. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version, which I did, then reran WebSetup.msi and keeps giving me this error. "The installer was interrupted...
0
2348
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 (ASP.NET) that shows a simple report. It work fine with on my local computer. Now I'm trying to deploy this sample application on our web server but I really need some help.
3
8924
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 from sql server) and I was wondering whish of these is the better tool .. We're still not sure if they'll be loaded from an existing VB6 application or if I'll have to make a separate module for them (in .Net). In general, which is the better tool?...
1
4318
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 ExcelUseConstantColumnWidth = False. On my PC when exporting a report, it works - columns are varible width to fit the field, from the server it does not - I get constant width columns. I suspect it is a DLL issue, but so far all my comparisons are coming out the same.
3
3825
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 dataset and link it to a reportviewer than any Crystal Report book will do. I use vb.net but im assuming most books would show you vb and c
1
8145
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 file and itself into the exe. You would probably want a tool for this bit which could be in the zip too. So the app isnt single exe when running but when not running, it is. Just an idea for you to think about. Another option would possibly be to...
0
9591
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10053
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
10001
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
9867
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
8880
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...
1
7415
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
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();...
2
3573
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2816
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.