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

Dynamic report - Crystal Report (C# .Net)

Hello,

I want to now how to do a dynamic report with Crystal
Report (C# .Net), the number of colum and row are
different each time because they depend of my data base.

Thanks

Climber
Nov 15 '05 #1
3 17504
Hi,

With the .NET version of CR you cannot create the report dynamically.

The number of rows is not important, as the report struct does not change
with this, the number of columns are the real concern.

Cheers,

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

"Climber" <de*******@sogescom.net> wrote in message
news:a9****************************@phx.gbl...
Hello,

I want to now how to do a dynamic report with Crystal
Report (C# .Net), the number of colum and row are
different each time because they depend of my data base.

Thanks

Climber

Nov 15 '05 #2
I want to know how to change the DataBase path on
runtime ,same database same table but deferent
path "report with Crystal"

-----Original Message-----
Hi,

With the .NET version of CR you cannot create the report dynamically.
The number of rows is not important, as the report struct does not changewith this, the number of columns are the real concern.

Cheers,

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

"Climber" <de*******@sogescom.net> wrote in message
news:a9****************************@phx.gbl...
Hello,

I want to now how to do a dynamic report with Crystal
Report (C# .Net), the number of colum and row are
different each time because they depend of my data base.

Thanks

Climber

.

Nov 15 '05 #3
Hi,

I haven;t do that, but I think that if you change the ConnectionInfo of the
report it can be done, in fact in the code I posted you can see that I set
the ConnectionInfo and assign it to all of the tables I'm using, so in
theory you could even have different data sources for different tables in
the same report,
I include the code here again as I do not remember if I posted it on this
particular thread.

Hope this help,

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

ConnectionInfo crConnectionInfo = new ConnectionInfo();

crConnectionInfo.ServerName = "127.0.0.1";

crConnectionInfo.DatabaseName = "CTP";

crConnectionInfo.UserID = "test";

crConnectionInfo.Password = "test";

foreach (CrystalDecisions.CrystalReports.Engine.Table table in
reportDocument1.Database.Tables)

{

TableLogOnInfo crTableLogonInfo = new TableLogOnInfo();

crTableLogonInfo.TableName = table.Name;

crTableLogonInfo.ConnectionInfo = crConnectionInfo;

crTableLogonInfos.Add( crTableLogonInfo);

table.ApplyLogOnInfo( crTableLogonInfo);

}

CrystalReportViewer1.LogOnInfo = crTableLogonInfos;

CrystalReportViewer1.ReportSource = reportDocument1;
"[GHO]" <yo*****@taux01.nsc.com> wrote in message
news:1e****************************@phx.gbl...
I want to know how to change the DataBase path on
runtime ,same database same table but deferent
path "report with Crystal"

-----Original Message-----
Hi,

With the .NET version of CR you cannot create the report

dynamically.

The number of rows is not important, as the report

struct does not change
with this, the number of columns are the real concern.

Cheers,

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

"Climber" <de*******@sogescom.net> wrote in message
news:a9****************************@phx.gbl...
Hello,

I want to now how to do a dynamic report with Crystal
Report (C# .Net), the number of colum and row are
different each time because they depend of my data base.

Thanks

Climber

.

Nov 15 '05 #4

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...
2
by: Sam | last post by:
Hello everyone, I have a table, which contains a picture column, I put URL info into it. "www.myweb.com/1.jpg..." I want to show this picture in my crystal report, I find some samples show the...
0
by: edward zhang | last post by:
I have a VB.Net application which uses the Crystal Report(Crystal Report 8.5) Viewer to open reports. One of the reports uses a stored procedure and another one uses tables as data resource, both...
0
by: Alphonse | last post by:
Hi, I have an application that need to print a report (Crystal Report) using a custom paper size. The problem is, everytime I want to print it, I need to go to printer properties & set the paper...
1
by: Duong Nguyen | last post by:
Hello, I write my application in VS.NET 2005. But I don't know how to deployment this application in order to all the report (Crystal Report in VS.NET) works well. It's so silly to setup whole...
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...
4
by: Sathiamoorthy | last post by:
I am working as a .Net Developer using VB.Net. I need some logic or code for faxing a report (crystal report) . Anybody can help me? Regards, R.Satiamoorthy
2
by: nadeaupn | last post by:
Hi all, Could somebody tell me how to set the content (text) of a special field in a not incorporated report (Crystal Report) using Visula Studio 2005 ? I want to dynamically (at run time)...
1
by: ganeshvkl | last post by:
hi , i 'm using VB 6.0 with sql server 2000 .Report - Crystal Report 8.5 when i try to connect the database from vb 6.0. The Code is strDSNName = "Provider=sqloledb;Data Source=server;Initial...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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: 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
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.