It's a bug of StiSLViewerControl,DataBand appear loop??

Stimulsoft Reports.Silverlight discussion
Locked
lowence
Posts: 8
Joined: Thu Jun 02, 2011 2:26 am

It's a bug of StiSLViewerControl,DataBand appear loop??

Post by lowence »

In 1.mrt file ,I use two DataBand to the report.
Then reg some test data to the Report of StiSLViewerControl.
// load
private void loadBtn_Click(object sender, RoutedEventArgs e)
{
var sr = Assembly.GetExecutingAssembly().GetManifestResourceStream("Test.1.mrt");

if (sr != null)
{
StiReport rpt = new StiReport();
rpt.Load(sr);
rpt.CalculationMode = StiCalculationMode.Interpretation;

Data dt = new Data();
dt.Products = dt.Products.Take(5).ToList();
dt.Customers = dt.Customers.Take(5).ToList();

rpt.RegBusinessObject("Data", "Data", dt);

rpt.Render();

viewerControl.Report = rpt;
}
}

But,the product DataBand and Customer DataBand both Appear two time.
Total four time.

that's very sad to me.

why??It's a bug of StiSLViewerControl.
Or it's my error when config the mrt??

Waiting for you give me some idea.

thank you!

Attachments
1138.Test.zip
(83 KiB) Downloaded 349 times
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

It's a bug of StiSLViewerControl,DataBand appear loop??

Post by Jan »

Hello,

We need check your report. Can you send it for examination to our support? Also you can attach it in your post.

Thank you.
lowence
Posts: 8
Joined: Thu Jun 02, 2011 2:26 am

It's a bug of StiSLViewerControl,DataBand appear loop??

Post by lowence »

the core code of rtf file:



Transparent
True
0,0,6.4,0.8

Arial,8
0,0,0,0
DataSystem_Windows_Controls_StackPanel


{Data.Products.ProductID}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


Transparent
True
6.4,0,6.4,0.8

Arial,8
0,0,0,0
DataSystem_Windows_Controls_StackPanel2


{Data.Products.ProductName}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


Transparent
True
12.8,0,6.2,0.8

Arial,8
0,0,0,0
DataSystem_Windows_Controls_StackPanel3


{Data.Products.CategoryID}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center





Data





Transparent
0,5.2,19,0.8


Transparent
0,0,6.4,0.8

Arial,10,Bold
0,0,0,0
HeaderSystem_Windows_Controls_StackPanel4


CustomerID
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


Transparent
6.4,0,6.4,0.8

Arial,10,Bold
0,0,0,0
HeaderSystem_Windows_Controls_StackPanel5


CompanyName
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


Transparent
12.8,0,6.2,0.8

Arial,10,Bold
0,0,0,0
HeaderSystem_Windows_Controls_StackPanel6


ContactName
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center



Header2




Transparent
bfe4c30cf4a542e0aeb4634e34595ecf
0,6.8,19,0.8


Transparent
True
0,0,6.4,0.8

Arial,8
0,0,0,0
DataSystem_Windows_Controls_StackPanel4


{Data.Customers.CustomerID}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


Transparent
True
6.4,0,6.4,0.8

Arial,8
0,0,0,0
DataSystem_Windows_Controls_StackPanel5


{Data.Customers.CompanyName}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center


Transparent
True
12.8,0,6.2,0.8

Arial,8
0,0,0,0
DataSystem_Windows_Controls_StackPanel6


{Data.Customers.ContactName}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center





Data2







I use the test data from the simples of c# Data class.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

It's a bug of StiSLViewerControl,DataBand appear loop??

Post by Alex K. »

Hello,

This is a problem with using business objects. If you need to put a few bands with binding to BO, it is necessary to have the DataBand component in the container.

Thank you.
Attachments
1139.Report1.mrt
(33.54 KiB) Downloaded 280 times
Locked