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

Example creating Table in Crystal Report

Hi,

i need to get an example, to create a Table in my Crystal Report only by
having a Dataset. Can someone give me an small example please.

Thx for help

regards

Fabian
Nov 17 '05 #1
2 10628
Hi,
Just create the dataset as usual, then create a new instance of your report
( CR create a class with the same name of the report ) and then use
SetDataSource( dataset ) to assign your dataset to it.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Fabian" <Fa****@discussions.microsoft.com> wrote in message
news:80**********************************@microsof t.com...
Hi,

i need to get an example, to create a Table in my Crystal Report only by
having a Dataset. Can someone give me an small example please.

Thx for help

regards

Fabian

Nov 17 '05 #2
Hi,

Ok, this i did before, but how do I now create the table into my loaded CR ?

My current Source :

DataSet ds = new DataSet("Sells");
ReportDocument rd = new ReportDocument();
rd.Load("F:\\crRechnung.rpt"); //my CR
rd.SetDataSource(ds);
I now need a way to say something like this :
rd.Section1.addtable(name "table1", coloums 3, rows 4);
rd.Section1.table1.rows[0].coloums[0].text = "Cell 0,0";
Please help me... thx

Fabian

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
Just create the dataset as usual, then create a new instance of your report
( CR create a class with the same name of the report ) and then use
SetDataSource( dataset ) to assign your dataset to it.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Fabian" <Fa****@discussions.microsoft.com> wrote in message
news:80**********************************@microsof t.com...
Hi,

i need to get an example, to create a Table in my Crystal Report only by
having a Dataset. Can someone give me an small example please.

Thx for help

regards

Fabian


Nov 17 '05 #3

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

Similar topics

2
by: cj | last post by:
Has anyone come across the following error in running a Crystal Report in ASP.NET using the Crystal Reports Web Viewer control... CrystalDecisions.CrystalReports.Engine.InvalidArgumentException:...
1
by: CrystalDBA | last post by:
I usually design applications in SQL Server and Crystal Reports. I now need to create a crystal report on an MS Access database. I have two tables: Services: Date datetime Entry text...
1
by: Shelby | last post by:
Problem: My company generates its own data export from a propietary database. These (free) tables can be read in C#.NET using a Visual FoxPro driver (vfpoledb). I can read each of the six tables...
3
by: Amar | last post by:
I have a abc.PRG file in visual foxpro 8.0. I can run this file using visual foxpro environment and it creates a table X.dbf in the same folder where this program file is and populates some data...
4
by: Ryan | last post by:
I'm trying to create a report (similar to access) in VB 2005. It appears that Crystal Reports is the recommended method. I created a Crystal Report, set up the data connection (using the Wizard...
1
by: Rodo | last post by:
Hi all, I'm trying to generate a simple crystal report without a database. Several people mention the use of a dataset. Someone mention in a msdn forum that I could use the SetParameterValue to...
5
by: KewlToyZ | last post by:
Good day, I am stuck in a strange situation. SQL 2000 Server, creating a stored procedure to use in Crystal Reports 11. I am trying to build a report without creating a table or temprorary table in...
4
by: sklett | last post by:
I've developed an ERP application that we use internally and works quite well. I receiving more and more requests from users to print various transactions, order forms, search results, etc. I...
3
by: Paulo | last post by:
Hi, how can I create web reports? I need to create grouping, subtotals, totals, etc... Must I use gridview? Generating <tableand <tris the best solution? Using asp.net C# 2.0 Thanks
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.