예제 #1
0
 /// <summary>
 /// Creates a new PDF exporter with the specified settings.
 /// </summary>
 /// <param name="report">The report object.</param>
 /// <param name="settings">The settings for the PDF exporter.</param>
 public PdfExporter(GcReport report, PdfExportSettings settings) : this(report)
 {
     if (settings != null)
     {
         this.settings.CopyFrom(settings);
     }
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Dt.Cells.Data.GcReportContext" /> class.
 /// </summary>
 /// <param name="report">The report.</param>
 /// <param name="dpi">The dpi.</param>
 public GcReportContext(GcReport report, int dpi)
 {
     this.upi        = 0x48;
     this.pages      = new List <List <GcPageBlock> >();
     this.pageRects  = new GcPageRectangles();
     this.measure    = new Utilities.MeasureUtility(UnitType.CentileInch, defaultFont);
     this.pageFooter = null;
     this.pageHeader = null;
     this.report     = report;
     this.dpi        = dpi;
 }
예제 #3
0
 /// <summary>
 /// Creates a new PDF exporter.
 /// </summary>
 /// <param name="report">The report object.</param>
 public PdfExporter(GcReport report)
 {
     this.dpi         = (int)UnitManager.Dpi;
     this.settings    = new PdfExportSettings();
     this.imageCaches = new Dictionary <ImageSource, Image>();
     if (report == null)
     {
         throw new ArgumentNullException("report");
     }
     this.report = report;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Dt.Cells.Data.GcReportContext" /> class.
 /// </summary>
 /// <param name="report">The report.</param>
 /// <param name="dpi">The dpi.</param>
 /// <param name="measure">The measurement.</param>
 public GcReportContext(GcReport report, int dpi, IMeasureable measure) : this(report, dpi)
 {
     this.measure = measure;
 }