本文整理汇总了C#中ICSharpCode.Reports.Core.ReportPageEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ReportPageEventArgs类的具体用法?C# ReportPageEventArgs怎么用?C# ReportPageEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ReportPageEventArgs类属于ICSharpCode.Reports.Core命名空间,在下文中一共展示了ReportPageEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PrintReportHeader
internal override void PrintReportHeader (object sender, ReportPageEventArgs rpea)
{
base.PrintReportHeader (sender,rpea);
if (base.CurrentSection.Items.Count > 0) {
this.ReportHeader (rpea);
}
base.RemoveSectionEvents();
}
示例2: Render
public override void Render(ReportPageEventArgs rpea)
{
string toPrint = CheckForNullValue();
base.Text = StandardFormatter.FormatOutput(toPrint,
this.FormatString,
base.DataType,
this.nullValue);
base.Render (rpea);
}
示例3: Render
public override void Render(ReportPageEventArgs rpea)
{
if (rpea == null) {
throw new ArgumentNullException("rpea");
}
this.SetErrorLayout();
Border b = new Border(new BaseLine (this.ForeColor,System.Drawing.Drawing2D.DashStyle.Solid,1));
base.DrawFrame(rpea.PrintPageEventArgs.Graphics,b);
Print (rpea,this.errMess,base.DrawingRectangle);
}
示例4: Render
public override void Render(ReportPageEventArgs rpea) {
if (rpea == null) {
throw new ArgumentNullException("rpea");
}
base.Render(rpea);
Rectangle rect = base.DrawingRectangle;
base.FillBackground(rpea.PrintPageEventArgs.Graphics);
shape.DrawShape (rpea.PrintPageEventArgs.Graphics,
base.Baseline(),
rect);
}
示例5: PrintDetail
internal override void PrintDetail(object sender, ReportPageEventArgs rpea){
base.PrintDetail(sender, rpea);
this.CurrentSection.SectionOffset = base.SectionBounds.PageHeaderRectangle.Bottom;
base.RenderSection(rpea);
base.RemoveSectionEvents();
base.ReportDocument.DetailsDone = true;
// test for reportfooter
if (!PrintHelper.IsRoomForFooter (base.SectionBounds,rpea.LocationAfterDraw)) {
AbstractRenderer.PageBreak(rpea);
}
}
示例6: Render
public override void Render(ReportPageEventArgs rpea)
{
this.NotifyPrinting();
base.Render(rpea);
if (this.DrawBorder == true) {
Border b = new Border(new BaseLine (this.FrameColor,System.Drawing.Drawing2D.DashStyle.Solid,1));
Rectangle r = new Rectangle (this.Location,this.Size);
b.DrawBorder(rpea.PrintPageEventArgs.Graphics,r);
}
this.NotifyPrinted();
}
示例7: Render
public override void Render(ReportPageEventArgs rpea) {
if (rpea == null) {
throw new ArgumentNullException("rpea");
}
base.Render(rpea);
Rectangle rect = base.DisplayRectangle;
StandardPrinter.FillBackground(rpea.PrintPageEventArgs.Graphics,this.BaseStyleDecorator);
shape.DrawShape (rpea.PrintPageEventArgs.Graphics,
base.Baseline(),
rect);
}
示例8: Render
public override void Render(ReportPageEventArgs rpea)
{
if (rpea == null) {
throw new ArgumentNullException("rpea");
}
base.Render (rpea);
Rectangle rect = base.DisplayRectangle;
shape.FillShape(rpea.PrintPageEventArgs.Graphics,
new SolidFillPattern(this.BackColor),
rect);
shape.DrawShape (rpea.PrintPageEventArgs.Graphics,
base.Baseline(),
rect);
}
示例9: Render
public override void Render(ReportPageEventArgs rpea)
{
if (rpea == null) {
throw new ArgumentNullException("rpea");
}
//
Point saveLocation = this.Location;
Point currentPosition = new Point(this.startSection.Location.X,this.startSection.Location.Y);
Point tableStart = currentPosition;
base.Render(rpea);
int defaultLeftPos = PrintHelper.DrawingAreaRelativeToParent(this.Parent,this).Left;
this.Items.SortByLocation();
rpea.SinglePage.StartRow = this.dataNavigator.CurrentRow;
foreach (BaseRowItem row in this.items)
{
if (row != null)
{
row.Parent = this;
if (PrintHelper.IsTextOnlyRow(row) )
{
currentPosition = this.PrintTextRow (rpea,row,defaultLeftPos,currentPosition);
this.Location = saveLocation;
}
else {
do {
if (PrintHelper.IsPageFull(new Rectangle(currentPosition,row.Size),sectionBounds)) {
this.Location = saveLocation;
rpea.SinglePage.EndRow = this.dataNavigator.CurrentRow;
AbstractRenderer.PageBreak(rpea);
return;
}
currentPosition = this.PrintDataRow (rpea,row,defaultLeftPos,currentPosition);
}
while (this.dataNavigator.MoveNext());
}
}
}
if (this.DrawBorder) {
Border border = new Border(new BaseLine (this.ForeColor,System.Drawing.Drawing2D.DashStyle.Solid,1));
border.DrawBorder(rpea.PrintPageEventArgs.Graphics,
new Rectangle(this.Parent.Location.X,tableStart.Y,
this.Parent.Size.Width,currentPosition.Y + 5));
}
rpea.LocationAfterDraw = new Point(rpea.LocationAfterDraw.X,rpea.LocationAfterDraw.Y + 20);
base.NotifyAfterPrint (rpea.LocationAfterDraw);
}
示例10: Render
public override void Render(ReportPageEventArgs rpea) {
if (rpea == null) {
throw new ArgumentNullException("rpea");
}
base.Render(rpea);
base.FillBackground(rpea.PrintPageEventArgs.Graphics);
//Border b = new Border(new BaseLine (this.ForeColor,System.Drawing.Drawing2D.DashStyle.Solid,1));
Border b = new Border(new BaseLine (this.FrameColor,System.Drawing.Drawing2D.DashStyle.Solid,1));
base.DrawFrame(rpea.PrintPageEventArgs.Graphics,b);
string formated = StandardFormatter.FormatOutput(this.text,this.FormatString,this.DataType,String.Empty);
Print (rpea,formated,base.DrawingRectangle);
base.NotifyAfterPrint (rpea.LocationAfterDraw);
}
示例11: Render
public override void Render(ReportPageEventArgs rpea)
{
if (rpea == null) {
throw new ArgumentNullException("rpea");
}
base.Render (rpea);
shape.DrawShape (rpea.PrintPageEventArgs.Graphics,
new BaseLine (this.ForeColor,base.DashStyle,
base.Thickness,
this.startLineCap,
this.endLineCap,
this.dashLineCap),
new Point(base.DisplayRectangle.Left + this.fromPoint.X,
this.FromPoint.Y + base.DisplayRectangle.Top),
new Point (base.DisplayRectangle.Left + this.ToPoint.X,
this.ToPoint.Y + base.DisplayRectangle.Top));
}
示例12: Render
public override void Render(ReportPageEventArgs rpea) {
if (rpea == null) {
throw new ArgumentNullException("rpea");
}
base.Render(rpea);
StandardPrinter.FillBackground(rpea.PrintPageEventArgs.Graphics,this.BaseStyleDecorator);
StandardPrinter.DrawBorder(rpea.PrintPageEventArgs.Graphics,this.BaseStyleDecorator);
string formated = StandardFormatter.FormatOutput(this.text,this.FormatString,this.DataType,String.Empty);
Print (rpea,formated,base.DisplayRectangle);
base.NotifyAfterPrint (rpea.LocationAfterDraw);
}
示例13: Render
public override void Render(ReportPageEventArgs rpea)
{
if (rpea == null) {
throw new ArgumentNullException("rpea");
}
Point point = this.Location;
base.Render(rpea);
StandardPrinter.AdjustBackColor(this);
StandardPrinter.FillBackground(rpea.PrintPageEventArgs.Graphics,this.BaseStyleDecorator);
StandardPrinter.DrawBorder(rpea.PrintPageEventArgs.Graphics,this.BaseStyleDecorator);
rpea.LocationAfterDraw = new Point(rpea.LocationAfterDraw.X,this.Location.Y + this.Size.Height);
this.Location = point;
base.NotifyAfterPrint (rpea.LocationAfterDraw);
}
示例14: RenderItems
protected Point RenderItems (ReportPageEventArgs rpea)
{
base.SinglePage.IDataNavigator = this.dataNavigator;
base.CurrentRow = this.dataNavigator.CurrentRow;
ISimpleContainer container = null;
bool hasContainer = false;
foreach (BaseReportItem item in this.CurrentSection.Items) {
container = item as ISimpleContainer;
if (container != null) {
hasContainer = true;
break;
}
}
if (hasContainer) {
return DoContainerControl(this.CurrentSection,container,rpea);
} else {
return base.RenderSection(rpea);
}
}
示例15: Render
public override void Render(ReportPageEventArgs rpea) {
if (rpea == null) {
throw new ArgumentNullException("rpea");
}
base.Render(rpea);
Rectangle rectangle = base.DisplayRectangle;
StandardPrinter.FillBackground(rpea.PrintPageEventArgs.Graphics,this.BaseStyleDecorator);
BaseLine line = new BaseLine(base.ForeColor,base.DashStyle,base.Thickness,LineCap.Round,LineCap.Round,DashCap.Round);
using (Pen pen = line.CreatePen(line.Thickness)){
if (pen != null)
{
shape.CornerRadius = this.CornerRadius;
GraphicsPath gfxPath = shape.CreatePath(rectangle);
rpea.PrintPageEventArgs.Graphics.FillPath(new SolidBrush(BackColor), gfxPath);;
rpea.PrintPageEventArgs.Graphics.DrawPath(pen, gfxPath);
}
}
}