By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,526 Members | 2,207 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,526 IT Pros & Developers. It's quick & easy.

Dynamic report - Crystal Report (C# .Net)

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.