473,386 Members | 1,720 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,386 software developers and data experts.

mysql and crystal reports


is there a way of integrating mysql databases into the .net crystal reports?
in the report wizard i have options for sql databases, but nothing for
mysql. is there a plugin i'm missing for it?

i've tried creating a dataset and filling it with the data from a mysql
query, but it still does not show up in the wizard. i have also tried to
create fields and import data to them, but there seems to be no way of
accessing the crystal report fields. any ideas on what the easiest way to do
this would be? or is there a better way of creating reports from datasets?

i'm an experienced programmer, just new to crystal reports.
thanks for any help given
Nov 22 '05 #1
5 3200
I use "Field Definitions Only" (these are .ttx files) to feed my CR .rpt --
they are very simple to create and manage.
Example .ttx
Field1 String 3
Field2 Number 10
Field3 Date
Field4 Currency

Do NOT pass a dataset to Crystal Reports, pass a DataTable.

The field names and structures need to match the field names and structures
in the DataTable.

This works with CR .NET in VS .NET 2003 and also maintain backward
compatibility to CR 8.5 rpt using .ttx approach.

You avoid the hassle of creating a DataSet.xds which is way too much
overhead IMHO and just doesn't make for easy distribution.

"oscar" <os***@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...

is there a way of integrating mysql databases into the .net crystal
reports?
in the report wizard i have options for sql databases, but nothing for
mysql. is there a plugin i'm missing for it?

i've tried creating a dataset and filling it with the data from a mysql
query, but it still does not show up in the wizard. i have also tried to
create fields and import data to them, but there seems to be no way of
accessing the crystal report fields. any ideas on what the easiest way to
do
this would be? or is there a better way of creating reports from datasets?

i'm an experienced programmer, just new to crystal reports.
thanks for any help given

Nov 22 '05 #2

putting the datatable right into the crystal report works much better, but
do i have to create the reports off of a .xml version first so i know all the
fields are right and then get rid of the .xml document and bind the datatable
to the crystal report? every time i create fields in the crystal report then
send the datatable to it i get an error message telling me that the fields
don't exist.
Nov 22 '05 #3
Windows CR reports or Web CR reports?

1. create a <your_report_filename>.ttx file (Notepad or from within VS as a
*.* file) per my info above
Field1 String 3
Field2 Number 10
Field3 Date
Field4 Currency
(adjust field names and types to match your datatable fields)

2. load/create .rpt in your solution/project
3. open up the "Field Explorer" in left pane
4. right click "Database Fields"
5. click on "More Data Sources"
6. click on "Field Definitions Only"
7. enter the path to the .ttx file you created above (step 1)
8. click on ">" to move the file to "Selected Tables" list
9. click Ok

You should see the list of fields you defined in your .ttx from step 1.
Drag and drop these fields into your report. So long as the field names and
types match up with your DataTable field names and types, you should be good
to go. You can probably do the same with XML document if you like, but XML
has a ton of tags and other useless garbage that isn't needed. If you need
to change the contents of you .ttx file, then right click on "Database
Fields" and do "Verify Database" -- this will synch up the .ttx to the .rpt
(be careful, type changes will remove the field from the report and you'll
have to re-add it) when you do this.

There are many ways to link up data to a report, I personally prefer the
simplest approach (.ttx) as I don't need all the overhead associated with a
DataSet (which can contain multiple tables).

Rob.

"oscar" <os***@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...

putting the datatable right into the crystal report works much better, but
do i have to create the reports off of a .xml version first so i know all
the
fields are right and then get rid of the .xml document and bind the
datatable
to the crystal report? every time i create fields in the crystal report
then
send the datatable to it i get an error message telling me that the fields
don't exist.

Nov 22 '05 #4

thank you for all your help.

i tried the .ttx files and they seemed speratic as to when they would work
and when they wouldn't. i actually started just creating an xml schema and
creating the crystal reports from those. i get the dataset, which is data
from the mysql database, and write the xml schema, which is always the same
file name it just rewrites it to fit the new data, and then i make a
datatable = dataset.tables[0] and import it to the report. it seems to work
very well and by rewriting my xml schema to the same file each time it
prevents me from needing to have a database file for each crystal report,
because i'm probably going to have 50-100 reports by the end of this project.
in answer to your questions, they are windows CR reports.

thanks again for the help.

Nov 22 '05 #5

as i've gotten further into this i have come accross another question i hope
you can answer. i have a customer crystal report and it can display name,
full address and notes but the user will have the option to only display
their name and phone number. do i have to create 2 different reports for
these or is there a way to hide some fields? i tried remaking the xml
schema and figured that would reset the fields, but the empty fields are
still there. is there a way to only display the fields in the datatable
being sent to the crystal report? or do you just create a report for each
type of datatable?
Nov 22 '05 #6

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

Similar topics

3
by: oscar | last post by:
is there a way of integrating mysql databases into the .net crystal reports? in the report wizard i have options for sql databases, but nothing for mysql. is there a plugin i'm missing for it? ...
0
by: Maria P | last post by:
I am developing an application in VB using MySQL as DB. I am trying to generate reports with Crystal Reports but every time I am calling the table fields for the report it shows the following error...
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)
2
by: Jose_csharp | last post by:
Hi, I´m programming with C# and I want to create a report linked with a database of mysql. When I execute de solution appear the next message: "Failed to open a rowset" Any solution? Maybe it...
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: Atif | last post by:
Hi All My problem is not related with this group BUT i have got a clue from here that's why i am posting this question over here. I am using Crystal Reports 9 with MySQL and SQL Server....
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: mejames | last post by:
I am using VB.NET 2003, MYSQL database and Crystal Reports. I am able to generate 1 set of reports using the following code: Imports MySql.Data.MySqlClient Imports...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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,...

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.