Hi,
I need to set for a databand in page 2, a master databand located in page 1.
How can I do this ?
Thanks
Master component in other page
Master component in other page
Hello,
If we understand you task correctly.
You can use properties "New Page Before" set in true and "New Page After" set in true on master DataBand component.
Please see the sample report in attachment.
Thank you.
If we understand you task correctly.
You can use properties "New Page Before" set in true and "New Page After" set in true on master DataBand component.
Please see the sample report in attachment.
Thank you.
- Attachments
-
- 571.Sample Report.mrt
- (19.68 KiB) Downloaded 215 times
Master component in other page
Thanks for your reply
In my case, the databand Products is in page 2 (cause ther'se a lot of other databands in page 1)
and I want to associate with the Master Databand Categories in page 1
Here's your sample modified with my constraints :
Demo
Demo
D:\Demo.xml
D:\Demo.xsd
Categories
CategoryID,System.Int32
CategoryName,System.String
Description,System.String
Categories
Demo.Categories
Countries
CountriesID,System.Int32
Flag,System.Byte[]
CountryName,System.String
Countries
Demo.Countries
Customers
CustomerID,System.String
CompanyName,System.String
ContactName,System.String
ContactTitle,System.String
Address,System.String
City,System.String
Region,System.String
PostalCode,System.String
Country,System.String
Phone,System.String
Fax,System.String
Customers
Demo.Customers
Employees
EmployeeID,System.Int32
LastName,System.String
FirstName,System.String
Title,System.String
BirthDate,System.DateTime
HireDate,System.DateTime
Address,System.String
City,System.String
Region,System.String
PostalCode,System.String
Country,System.String
HomePhone,System.String
Notes,System.String
ReportsTo,System.Int32
Employees
Demo.Employees
Order Details
OrderID,System.Int32
ProductID,System.Int32
UnitPrice,System.Decimal
Quantity,System.Int16
Discount,System.Single
Order Details
Demo.Order Details
Orders
OrderID,System.Int32
CustomerID,System.String
EmployeeID,System.Int32
OrderDate,System.DateTime
RequiredDate,System.DateTime
ShippedDate,System.DateTime
ShipVia,System.Int32
Freight,System.Decimal
ShipName,System.String
ShipAddress,System.String
ShipCity,System.String
ShipRegion,System.String
ShipPostalCode,System.String
ShipCountry,System.String
Orders
Demo.Orders
Products
ProductID,System.Int32
ProductName,System.String
SupplierID,System.Int32
CategoryID,System.Int32
QuantityPerUnit,System.String
UnitPrice,System.Decimal
UnitsInStock,System.Int16
Products
Demo.Products
Shippers
ShipperID,System.Int32
CompanyName,System.String
Phone,System.String
Shippers
Demo.Shippers
Suppliers
SupplierID,System.Int32
CompanyName,System.String
ContactName,System.String
ContactTitle,System.String
Address,System.String
City,System.String
Region,System.String
PostalCode,System.String
Country,System.String
Phone,System.String
Fax,System.String
HomePage,System.String
Suppliers
Demo.Suppliers
Employees
ReportsTo
Employees
EmployeesEmployees
EmployeeID
Products
ProductID
Products
ProductsOrder_Details
ProductID
Orders
OrderID
Orders
OrdersOrder_Details
OrderID
Customers
CustomerID
Customers
CustomersOrders
CustomerID
Shippers
ShipVia
Shippers
ShippersOrders
ShipperID
Employees
EmployeeID
Employees
EmployeesOrders
EmployeeID
Categories
CategoryID
Categories
CategoriesProducts
CategoryID
Suppliers
SupplierID
Suppliers
SuppliersProducts
SupplierID
EngineV2
None;Black;2;Solid;False;4;Black
Transparent
All;Black;1;Solid;False;4;Black
Transparent
0,0.4,19,0.8
Transparent
True
0,0,6.4,0.8
Arial,8
ce80373aee124368b91cabef16052c1d
0,0,0,0
DataCategories_CategoryID
{Categories.CategoryID}
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
097db59684b4445a8749a186d6c55ae8
0,0,0,0
DataCategories_CategoryName
{Categories.CategoryName}
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
9380538c67b24c698948922cd2a538b1
0,0,0,0
DataCategories_Description
{Categories.Description}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center
Categories
4d165ff189c24b80a090ae970bfc4508
DataCategories
True
True
ced97949c34045d2a1e7b8d37d0dd60e
1,1,1,1
Page1
29.7
21
Arial,100
[50:0:0:0]
None;Black;2;Solid;False;4;Black
Transparent
Transparent
0,0.4,19,0.8
Transparent
True
0,0,6.4,0.8
Arial,8
52afa51042a944faa71f547827ff3439
0,0,0,0
DataProducts_ProductID
{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
0c3545b9dcc5434ab113e68e5ef36991
0,0,0,0
DataProducts_ProductName
{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
d8aaf5eee55e4a51ad5c05e59a2e2c82
0,0,0,0
DataProducts_UnitPrice
{Products.UnitPrice}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center
CategoriesProducts
Products
208188c7eaf64363bce0d677acfdc8cd
DataProducts
d73c4628f5a4453eb4d2d59e4ae8a3f7
1,1,1,1
Page2
29.7
21
Arial,100
[50:0:0:0]
System.Dll
System.Drawing.Dll
System.Windows.Forms.Dll
System.Data.Dll
System.Xml.Dll
Stimulsoft.Controls.Dll
Stimulsoft.Base.Dll
Stimulsoft.Report.Dll
Report
9/1/2010 8:40:24 AM
9/1/2010 8:22:19 AM
C:\Documents and Settings\jean-paul\Mes documents\Downloads\Sample Report.mrt
3354bb38c90a4d54a3a2eac9f0f1cc8f
Report
Centimeters
2010.1.700
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
namespace Reports
{
public class Report : Stimulsoft.Report.StiReport
{
public Report()
{
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify#endregion StiReport Designer generated code - do not modify
}
}
CSharp
In my case, the databand Products is in page 2 (cause ther'se a lot of other databands in page 1)
and I want to associate with the Master Databand Categories in page 1
Here's your sample modified with my constraints :
Demo
Demo
D:\Demo.xml
D:\Demo.xsd
Categories
CategoryID,System.Int32
CategoryName,System.String
Description,System.String
Categories
Demo.Categories
Countries
CountriesID,System.Int32
Flag,System.Byte[]
CountryName,System.String
Countries
Demo.Countries
Customers
CustomerID,System.String
CompanyName,System.String
ContactName,System.String
ContactTitle,System.String
Address,System.String
City,System.String
Region,System.String
PostalCode,System.String
Country,System.String
Phone,System.String
Fax,System.String
Customers
Demo.Customers
Employees
EmployeeID,System.Int32
LastName,System.String
FirstName,System.String
Title,System.String
BirthDate,System.DateTime
HireDate,System.DateTime
Address,System.String
City,System.String
Region,System.String
PostalCode,System.String
Country,System.String
HomePhone,System.String
Notes,System.String
ReportsTo,System.Int32
Employees
Demo.Employees
Order Details
OrderID,System.Int32
ProductID,System.Int32
UnitPrice,System.Decimal
Quantity,System.Int16
Discount,System.Single
Order Details
Demo.Order Details
Orders
OrderID,System.Int32
CustomerID,System.String
EmployeeID,System.Int32
OrderDate,System.DateTime
RequiredDate,System.DateTime
ShippedDate,System.DateTime
ShipVia,System.Int32
Freight,System.Decimal
ShipName,System.String
ShipAddress,System.String
ShipCity,System.String
ShipRegion,System.String
ShipPostalCode,System.String
ShipCountry,System.String
Orders
Demo.Orders
Products
ProductID,System.Int32
ProductName,System.String
SupplierID,System.Int32
CategoryID,System.Int32
QuantityPerUnit,System.String
UnitPrice,System.Decimal
UnitsInStock,System.Int16
Products
Demo.Products
Shippers
ShipperID,System.Int32
CompanyName,System.String
Phone,System.String
Shippers
Demo.Shippers
Suppliers
SupplierID,System.Int32
CompanyName,System.String
ContactName,System.String
ContactTitle,System.String
Address,System.String
City,System.String
Region,System.String
PostalCode,System.String
Country,System.String
Phone,System.String
Fax,System.String
HomePage,System.String
Suppliers
Demo.Suppliers
Employees
ReportsTo
Employees
EmployeesEmployees
EmployeeID
Products
ProductID
Products
ProductsOrder_Details
ProductID
Orders
OrderID
Orders
OrdersOrder_Details
OrderID
Customers
CustomerID
Customers
CustomersOrders
CustomerID
Shippers
ShipVia
Shippers
ShippersOrders
ShipperID
Employees
EmployeeID
Employees
EmployeesOrders
EmployeeID
Categories
CategoryID
Categories
CategoriesProducts
CategoryID
Suppliers
SupplierID
Suppliers
SuppliersProducts
SupplierID
EngineV2
None;Black;2;Solid;False;4;Black
Transparent
All;Black;1;Solid;False;4;Black
Transparent
0,0.4,19,0.8
Transparent
True
0,0,6.4,0.8
Arial,8
ce80373aee124368b91cabef16052c1d
0,0,0,0
DataCategories_CategoryID
{Categories.CategoryID}
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
097db59684b4445a8749a186d6c55ae8
0,0,0,0
DataCategories_CategoryName
{Categories.CategoryName}
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
9380538c67b24c698948922cd2a538b1
0,0,0,0
DataCategories_Description
{Categories.Description}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center
Categories
4d165ff189c24b80a090ae970bfc4508
DataCategories
True
True
ced97949c34045d2a1e7b8d37d0dd60e
1,1,1,1
Page1
29.7
21
Arial,100
[50:0:0:0]
None;Black;2;Solid;False;4;Black
Transparent
Transparent
0,0.4,19,0.8
Transparent
True
0,0,6.4,0.8
Arial,8
52afa51042a944faa71f547827ff3439
0,0,0,0
DataProducts_ProductID
{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
0c3545b9dcc5434ab113e68e5ef36991
0,0,0,0
DataProducts_ProductName
{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
d8aaf5eee55e4a51ad5c05e59a2e2c82
0,0,0,0
DataProducts_UnitPrice
{Products.UnitPrice}
Black
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Center
CategoriesProducts
Products
208188c7eaf64363bce0d677acfdc8cd
DataProducts
d73c4628f5a4453eb4d2d59e4ae8a3f7
1,1,1,1
Page2
29.7
21
Arial,100
[50:0:0:0]
System.Dll
System.Drawing.Dll
System.Windows.Forms.Dll
System.Data.Dll
System.Xml.Dll
Stimulsoft.Controls.Dll
Stimulsoft.Base.Dll
Stimulsoft.Report.Dll
Report
9/1/2010 8:40:24 AM
9/1/2010 8:22:19 AM
C:\Documents and Settings\jean-paul\Mes documents\Downloads\Sample Report.mrt
3354bb38c90a4d54a3a2eac9f0f1cc8f
Report
Centimeters
2010.1.700
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
namespace Reports
{
public class Report : Stimulsoft.Report.StiReport
{
public Report()
{
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify#endregion StiReport Designer generated code - do not modify
}
}
CSharp
Master component in other page
Hello,
It is not possible to make a bunch of master-detail for the bands located on different pages. Alternatively, you can use only subrepoort.
Please see the sample report in attachment.
If you could send us detailed description of want result do you want to get, perhaps we can find some solutions for you.
Thank you.
It is not possible to make a bunch of master-detail for the bands located on different pages. Alternatively, you can use only subrepoort.
Please see the sample report in attachment.
If you could send us detailed description of want result do you want to get, perhaps we can find some solutions for you.
Thank you.
- Attachments
-
- 574.Sample Report.mrt
- (20.88 KiB) Downloaded 220 times
Master component in other page
It works perfectly, as usual...
Thanks a lot
Thanks a lot
Master component in other page
Great! :biggrin:
Have a nice day!
Have a nice day!