MutiLine Text

Stimulsoft Reports.NET discussion
Post Reply
Emd
Posts: 6
Joined: Wed Jun 30, 2010 2:08 am
Location: Israel

MutiLine Text

Post by Emd »

Hi,

I'm new to Stimulsoft Report I have 2 questions

1- How to Set a Text in a DataBand to be multiline ?
2- Sometimes when I design a report with a Text in a DataBand and I print it after registering its DataSource I see only the first record, in other reports it works fine ! I can't tell what I'm doing wrong,
what setting I have to set in order to see the rest of the records ?

Thanks
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

MutiLine Text

Post by Jan »

Hello,
1- How to Set a Text in a DataBand to be multiline ?
Please set WordWrap and CanGrow properties to true.
2- Sometimes when I design a report with a Text in a DataBand and I print it after registering its DataSource I see only the first record, in other reports it works fine ! I can't tell what I'm doing wrong,
what setting I have to set in order to see the rest of the records ?
Please check that you assign DataSource to this DataBand.

Thank you.
Emd
Posts: 6
Joined: Wed Jun 30, 2010 2:08 am
Location: Israel

MutiLine Text

Post by Emd »

Hello,

Quote:

1- How to Set a Text in a DataBand to be multiline ?

Please set WordWrap and CanGrow properties to true.

Worked Perfectly Thanks

Quote:

2- Sometimes when I design a report with a Text in a DataBand and I print it after registering its DataSource I see only the first record, in other reports it works fine ! I can't tell what I'm doing wrong,
what setting I have to set in order to see the rest of the records ?


Please check that you assign DataSource to this DataBand.

_______

I assign DataSource at run time as follows

frm.stiReport1.RegData("Ballance", this.BallanceTable);
frm.stiReport1.Dictionary.Synchronize();
frm.stiReport1.Dictionary.DataSources[0].Name = "Ballance";
frm.stiReport1.Dictionary.DataSources[0].Alias = "Ballance";

at report Designe I do the Following in DataField
{Ballance.Value}
When I print report only First Record shows
Thank you in Advance
Emd
Posts: 6
Joined: Wed Jun 30, 2010 2:08 am
Location: Israel

MutiLine Text

Post by Emd »

Hello,

I used the following and it works perfectly

frm.TranRep.RegData("Ballance", this.BallanceTable);
frm.TranRep.Dictionary.Synchronize();
frm.TranRep.Dictionary.DataSources[3].Name = "Ballance";
frm.TranRep.Dictionary.DataSources[3].Alias = "Ballance";

Stimulsoft.Report.Components.StiDataBand band = frm.TranRep.GetComponents()["DataBand2"]
as Stimulsoft.Report.Components.StiDataBand;
band.DataSourceName = "Ballance";

Thanks
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

MutiLine Text

Post by Andrew »

Hello,

Thank you for letting us know about this.
Post Reply