I am evaluating Simulsoft and am running into a problem with one of my sample reports.
I have a report with a child band under the group footer. This child band has a border (top, left, right, and bottom) around it and is set to Can Break=False and Print at Bottom=True.
When the data bands don't leave enough room for the child band to print at the bottom of the page it is correctly moved to the next page. However, a partial border (top, left, and right) is still printed on the previous page. None of the contents of the child band are printing inside the partial border, in fact the band prints perfectly on the next page.
How can I keep that empty border area from being printed?
Thank you very much.
Partial border printed when band moved to the next page
Partial border printed when band moved to the next page
Hello,
We couldn't reproduce this issue.
Can you please send us a sample report template with data, which reproduce the issue?
Thank you.
We couldn't reproduce this issue.
Can you please send us a sample report template with data, which reproduce the issue?
Thank you.
Partial border printed when band moved to the next page
Below is a sample report that demonstrates the issue. It uses the Demo.xml file from the Stimulsoft installation. After further testing it seems that the problem only occurs when there is a sub-report in the child band.
Code: Select all
Connection
Connection
C:\Development Tools\Stimulsoft Reports.Net 2011.1 Trial\Bin\Data\Demo.xml
C:\Development Tools\Stimulsoft Reports.Net 2011.1 Trial\Bin\Data\Demo.xsd
Auto
Rank,System.Double
Country,System.String
Year2009,System.Double
Year2005,System.Double
Year2000,System.Double
Auto
Connection.Auto
Categories
CategoryID,System.Int32
CategoryName,System.String
Description,System.String
Picture,System.Byte[]
Categories
Connection.Categories
Countries
CountriesID,System.Int32
Flag,System.Byte[]
CountryName,System.String
Countries
Connection.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
Connection.Customers
Employees
EmployeeID,System.Int32
LastName,System.String
FirstName,System.String
Title,System.String
TitleOfCourtesy,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
Extension,System.String
Photo,System.Byte[]
Notes,System.String
ReportsTo,System.Int32
Employees
Connection.Employees
GlobalGrowth
Region,System.String
Year2006,System.Double
Year2007,System.Double
Year2008,System.Double
Year2009,System.Double
GlobalGrowth
Connection.GlobalGrowth
Opec
Year,System.Double
Iran,System.Double
Iraq,System.Double
Kuwait,System.Double
Saudi_x0020_Arabia,System.Double
UAE,System.Double
Venezuela,System.Double
Libya,System.Double
Nigeria,System.Double
Opec
Connection.Opec
Order Details
OrderID,System.Int32
ProductID,System.Int32
UnitPrice,System.Decimal
Quantity,System.Int16
Discount,System.Single
Order Details
Connection.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
Connection.Orders
Products
ProductID,System.Int32
ProductName,System.String
SupplierID,System.Int32
CategoryID,System.Int32
QuantityPerUnit,System.String
UnitPrice,System.Decimal
UnitsInStock,System.Int16
UnitsOnOrder,System.Int16
ReorderLevel,System.Int16
Discontinued,System.Boolean
Products
Connection.Products
Shippers
ShipperID,System.Int32
CompanyName,System.String
Phone,System.String
Shippers
Connection.Shippers
States
Name,System.String
USPS,System.String
Population,System.Int32
Capital,System.String
States
Connection.States
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
Connection.Suppliers
Name
OrderID
Name
Relation
OrderID
,varOrderID,varOrderID,System.Int64,,False,False
EngineV2
None;Black;2;Solid;False;4;Black
Transparent
Transparent
0,0.2,7.72,0.3
None;Transparent;1;Solid;False;4;Black
Transparent
0,0,7.7,0.3
Arial,12,Bold
Center
0,0,0,0
Text2
OrderDate
Black
HeaderBand1
varOrderID = Orders.OrderID;
Transparent
0,0.9,7.72,0.3
{Orders.OrderID}
GroupHeaderBand1
All;Black;1;Solid;False;4;Black
Transparent
0,1.6,7.72,2.7
None;Transparent;1;Solid;False;4;Black
Transparent
0,0,7.7,2.7
Arial,12,Bold
0,0,0,0
Text1
{Orders.OrderDate}
Black
DataColumn
Orders
DataBand1
Transparent
0,4.7,7.72,0.3
False
GroupFooterBand1
All;Black;1;Solid;False;4;Black
Transparent
0,5.4,7.72,7
None;Transparent;1;Solid;False;4;Black
Transparent
0,0,7.7,7
Arial,48,Bold
Center
0,0,0,0
Text3
Child Band
Black
Expression
Center
Transparent
0,0,7.7,1.2
SubReport1
1cbccba8ae374aff8b9a7a410352b371
ChildBand1
True
True
88b8bbdab31b43489e80dcc3c9bf3e01
True
0.39,0.39,0.39,0.39
Page1
11
8.5
Letter
Arial,100
[50:0:0:0]
None;Black;2;Solid;False;4;Black
Transparent
Transparent
0,0.2,7.6,0.6
All;[105:105:105];1;Solid;False;4;[105:105:105]
Transparent
0,0,1.4,0.3
Arial,12,Bold| Underline
0
0,0,0,0
Table1_Cell1
AllowMove, AllowSelect, AllowChange
Order ID
Black
All;[105:105:105];1;Solid;False;4;[105:105:105]
Transparent
1.4,0,1.4,0.3
Arial,12,Bold| Underline
1
0,0,0,0
Table1_Cell2
AllowMove, AllowSelect, AllowChange
Product ID
Black
All;[105:105:105];1;Solid;False;4;[105:105:105]
Transparent
2.8,0,1.4,0.3
Arial,12,Bold| Underline
2
0,0,0,0
Table1_Cell3
AllowMove, AllowSelect, AllowChange
Unit Price
Black
All;[105:105:105];1;Solid;False;4;[105:105:105]
Transparent
4.2,0,1.4,0.3
Arial,12,Bold| Underline
3
0,0,0,0
Table1_Cell4
AllowMove, AllowSelect, AllowChange
Quantity
Black
All;[105:105:105];1;Solid;False;4;[105:105:105]
Transparent
5.6,0,2,0.3
Arial,12,Bold| Underline
4
0,0,0,0
Table1_Cell5
AllowMove, AllowSelect, AllowChange
Discount
Black
All;[105:105:105];1;Solid;False;4;[105:105:105]
Transparent
0,0.3,1.4,0.3
Arial,12
5
0,0,0,0
Table1_Cell6
AllowMove, AllowSelect, AllowChange
{Order_Details.OrderID}
Black
DataColumn
All;[105:105:105];1;Solid;False;4;[105:105:105]
Transparent
1.4,0.3,1.4,0.3
Arial,12
6
0,0,0,0
Table1_Cell7
AllowMove, AllowSelect, AllowChange
{Order_Details.ProductID}
Black
DataColumn
All;[105:105:105];1;Solid;False;4;[105:105:105]
Transparent
2.8,0.3,1.4,0.3
Arial,12
7
0,0,0,0
Table1_Cell8
AllowMove, AllowSelect, AllowChange
{Order_Details.UnitPrice}
Black
DataColumn
All;[105:105:105];1;Solid;False;4;[105:105:105]
Transparent
4.2,0.3,1.4,0.3
Arial,12
8
0,0,0,0
Table1_Cell9
AllowMove, AllowSelect, AllowChange
{Order_Details.Quantity}
Black
DataColumn
All;[105:105:105];1;Solid;False;4;[105:105:105]
Transparent
5.6,0.3,2,0.3
Arial,12
9
0,0,0,0
Table1_Cell10
AllowMove, AllowSelect, AllowChange
{Order_Details.Discount}
Black
DataColumn
Order Details
_x007B_Order_Details.OrderID_x0020__x003D__x003D__x0020_varOrderID_x003B__x007D_
1
0.2
Table1
25
2
1cbccba8ae374aff8b9a7a410352b371
0.39,0.39,0.39,0.39
subReport_1
11.69
8.48
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
12/7/2011 9:13:01 AM
12/7/2011 8:42:06 AM
C:\Development Tools\Stimulsoft Reports.Net 2011.1 Trial\SampleReport.mrt
b6f73258fdca411f9567d1255377ee67
Report
Inches
2011.1.1000
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
Partial border printed when band moved to the next page
Hello,
This behavior is due to using the SubReport component on the ChildBand. Please try to move the data band from the sub-report to the ChildBand.
Thank you.
This behavior is due to using the SubReport component on the ChildBand. Please try to move the data band from the sub-report to the ChildBand.
Thank you.
- Attachments
-
- 1472.Report_modified.mrt
- (29.01 KiB) Downloaded 128 times