public void PrintLegend(System.Drawing.Graphics g, Leyenda legend) { g.PageUnit = System.Drawing.GraphicsUnit.Point; XGraphics gfx = XGraphics.FromGraphics(g, XSize.FromSize(PageSizeConverter.ToSize(PageSize.A4))); this.CreateLegend(gfx, legend); gfx.Dispose(); }
public void Print(System.Drawing.Graphics g) { g.PageUnit = System.Drawing.GraphicsUnit.Point; XGraphics gfx = XGraphics.FromGraphics(g, XSize.FromSize(PageSizeConverter.ToSize(_layout.Size))); this.Render(gfx); gfx.Dispose(); }