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!
It's a bug of StiSLViewerControl,DataBand appear loop??
It's a bug of StiSLViewerControl,DataBand appear loop??
- Attachments
-
- 1138.Test.zip
- (83 KiB) Downloaded 348 times
It's a bug of StiSLViewerControl,DataBand appear loop??
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.
We need check your report. Can you send it for examination to our support? Also you can attach it in your post.
Thank you.
It's a bug of StiSLViewerControl,DataBand appear loop??
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.
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.
It's a bug of StiSLViewerControl,DataBand appear loop??
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.
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