|
|
|
@ -153,56 +153,56 @@ namespace ICSharpCode.Reports.Core
@@ -153,56 +153,56 @@ namespace ICSharpCode.Reports.Core
|
|
|
|
|
|
|
|
|
|
Point currentPosition = new Point(section.Location.X + container.Location.X,offset.Y); |
|
|
|
|
|
|
|
|
|
if (section.VisibleInReport) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
//Always set section.size to it's original value
|
|
|
|
|
|
|
|
|
|
section.Size = this.SectionBounds.DetailSectionRectangle.Size; |
|
|
|
|
|
|
|
|
|
Size containerSize = new Size (section.Items[0].Size.Width,section.Items[0].Size.Height); |
|
|
|
|
|
|
|
|
|
LayoutHelper.SetLayoutForRow(rpea.PrintPageEventArgs.Graphics,base.Layout,container); |
|
|
|
|
|
|
|
|
|
section.Render (rpea); |
|
|
|
|
|
|
|
|
|
PrintHelper.AdjustParent(section,section.Items); |
|
|
|
|
|
|
|
|
|
foreach (BaseReportItem item in section.Items) { |
|
|
|
|
// if (section.VisibleInReport)
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
|
|
//Always set section.size to it's original value
|
|
|
|
|
|
|
|
|
|
section.Size = this.SectionBounds.DetailSectionRectangle.Size; |
|
|
|
|
|
|
|
|
|
Size containerSize = new Size (section.Items[0].Size.Width,section.Items[0].Size.Height); |
|
|
|
|
|
|
|
|
|
LayoutHelper.SetLayoutForRow(rpea.PrintPageEventArgs.Graphics,base.Layout,container); |
|
|
|
|
|
|
|
|
|
section.Render (rpea); |
|
|
|
|
|
|
|
|
|
PrintHelper.AdjustParent(section,section.Items); |
|
|
|
|
|
|
|
|
|
foreach (BaseReportItem item in section.Items) { |
|
|
|
|
|
|
|
|
|
ISimpleContainer con = item as ISimpleContainer; |
|
|
|
|
if (con != null) { |
|
|
|
|
Rectangle r = StandardPrinter.RenderContainer(container,Evaluator,offset,rpea); |
|
|
|
|
currentPosition = PrintHelper.ConvertRectangleToCurentPosition(r); |
|
|
|
|
} |
|
|
|
|
ISimpleContainer con = item as ISimpleContainer; |
|
|
|
|
if (con != null) { |
|
|
|
|
Rectangle r = StandardPrinter.RenderContainer(container,Evaluator,offset,rpea); |
|
|
|
|
currentPosition = PrintHelper.ConvertRectangleToCurentPosition(r); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
item.SectionOffset = section.SectionOffset; |
|
|
|
|
Point saveLocation = item.Location; |
|
|
|
|
item.Render(rpea); |
|
|
|
|
|
|
|
|
|
item.Location = saveLocation; |
|
|
|
|
|
|
|
|
|
ISimpleContainer cont = item as ISimpleContainer; |
|
|
|
|
item.SectionOffset = section.SectionOffset; |
|
|
|
|
Point saveLocation = item.Location; |
|
|
|
|
item.Render(rpea); |
|
|
|
|
|
|
|
|
|
item.Location = saveLocation; |
|
|
|
|
|
|
|
|
|
ISimpleContainer cont = item as ISimpleContainer; |
|
|
|
|
|
|
|
|
|
Rectangle r = StandardPrinter.RenderContainer(cont,Evaluator,currentPosition,rpea); |
|
|
|
|
currentPosition = PrintHelper.ConvertRectangleToCurentPosition (r); |
|
|
|
|
|
|
|
|
|
item.Location = saveLocation; |
|
|
|
|
|
|
|
|
|
rpea.LocationAfterDraw = new Point (rpea.LocationAfterDraw.X,section.SectionOffset + section.Size.Height); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
section.Items[0].Size = containerSize; |
|
|
|
|
return currentPosition; |
|
|
|
|
Rectangle r = StandardPrinter.RenderContainer(cont,Evaluator,currentPosition,rpea); |
|
|
|
|
currentPosition = PrintHelper.ConvertRectangleToCurentPosition (r); |
|
|
|
|
|
|
|
|
|
item.Location = saveLocation; |
|
|
|
|
|
|
|
|
|
rpea.LocationAfterDraw = new Point (rpea.LocationAfterDraw.X,section.SectionOffset + section.Size.Height); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
section.Items[0].Size = containerSize; |
|
|
|
|
return currentPosition; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return currentPosition; |
|
|
|
|
// }
|
|
|
|
|
// return currentPosition;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|