Search Results for

    Show / Hide Table of Contents

    Class PrintOutPDFBase

    Report preocessing driver, capable of generate Adobe PDF files

    Inheritance
    object
    PrintOut
    PrintOutPDFBase
    PrintOutPDF
    Implements
    IDisposable
    Inherited Members
    PrintOut.DefaultPrinterName
    PrintOut.ForcePrinterName
    PrintOut.Previewing
    PrintOut.PageSizeArray
    PrintOut.CurrentMetafile
    PrintOut.PRINTOUT_MAX_PAGES
    PrintOut.FromPage
    PrintOut.ToPage
    PrintOut.Copies
    PrintOut.FOrientation
    PrintOut.EmptyReportThrowException
    PrintOut.NoData
    PrintOut.DrawFound
    PrintOut.PageSizeName(int)
    PrintOut.EndPage(MetaFile)
    PrintOut.SelectPrinter(PrinterSelectType)
    PrintOut.DrawChart(Series, MetaFile, int, int, object)
    PrintOut.PreparePrint(MetaFile)
    PrintOut.ProcessNoDataToPrint()
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    Assembly: Reportman.Drawing.dll
    Syntax
    public abstract class PrintOutPDFBase : PrintOut, IDisposable

    Constructors

    PrintOutPDFBase()

    Constructo and initialization

    Declaration
    public PrintOutPDFBase()

    Fields

    CalculateOnly

    The pdf is not generated but all size calculations are done

    Declaration
    public bool CalculateOnly
    Field Value
    Type Description
    bool

    Compressed

    The resulting PDF file can be compressed to reduce the file size

    Declaration
    public bool Compressed
    Field Value
    Type Description
    bool

    FileName

    Destination file where the Adobe PDF format file will be saved

    Declaration
    public string FileName
    Field Value
    Type Description
    string

    Properties

    LineInfo

    Declaration
    public List<LineInfo> LineInfo { get; }
    Property Value
    Type Description
    List<LineInfo>

    PDFConformance

    Declaration
    public PDFConformanceType PDFConformance { get; set; }
    Property Value
    Type Description
    PDFConformanceType

    PDFStream

    In memory stream containing the Adobe PDF format file

    Declaration
    public Stream PDFStream { get; }
    Property Value
    Type Description
    Stream

    Methods

    Dispose()

    Free memory consumed by graphics resources

    Declaration
    public override void Dispose()
    Overrides
    PrintOut.Dispose()

    DrawObject(MetaPage, MetaObject)

    Draw an object to the PDF file

    Declaration
    public void DrawObject(MetaPage page, MetaObject obj)
    Parameters
    Type Name Description
    MetaPage page

    MetaPage conatining the object

    MetaObject obj

    Object to be drawn

    DrawPage(MetaFile, MetaPage)

    Draw all objects of the page to current PDF file page

    Declaration
    public override void DrawPage(MetaFile meta, MetaPage page)
    Parameters
    Type Name Description
    MetaFile meta

    MetaFile containing the page

    MetaPage page

    MetaPage to be drawn

    Overrides
    PrintOut.DrawPage(MetaFile, MetaPage)

    EndDocument(MetaFile)

    Finalization

    Declaration
    public override void EndDocument(MetaFile meta)
    Parameters
    Type Name Description
    MetaFile meta

    MetaFile to process

    Overrides
    PrintOut.EndDocument(MetaFile)

    GetBitmapInfoProvider()

    Declaration
    public abstract IBitmapInfoProvider GetBitmapInfoProvider()
    Returns
    Type Description
    IBitmapInfoProvider

    GetFontInfoProvider()

    Declaration
    public abstract FontInfoProvider GetFontInfoProvider()
    Returns
    Type Description
    FontInfoProvider

    GetPageSize(out int)

    Get page size

    Declaration
    public override Point GetPageSize(out int indexqt)
    Parameters
    Type Name Description
    int indexqt

    Output parameters, index for PageSizeArray

    Returns
    Type Description
    Point

    Page size in twips

    Overrides
    PrintOut.GetPageSize(out int)

    GraphicExtent(MemoryStream, Point, int)

    Obtain graphic extent

    Declaration
    public override Point GraphicExtent(MemoryStream astream, Point extent, int dpi)
    Parameters
    Type Name Description
    MemoryStream astream

    Stream containing a bitmap or a Jpeg image

    Point extent

    Initial bounding box

    int dpi

    Resolution in Dots per inch of the image

    Returns
    Type Description
    Point

    Size in twips of the image

    Overrides
    PrintOut.GraphicExtent(MemoryStream, Point, int)

    NewDocument(MetaFile)

    Initialization

    Declaration
    public override void NewDocument(MetaFile meta)
    Parameters
    Type Name Description
    MetaFile meta

    MetaFile to process

    Overrides
    PrintOut.NewDocument(MetaFile)

    NewPage(MetaFile, MetaPage)

    Creates a new page

    Declaration
    public override void NewPage(MetaFile meta, MetaPage page)
    Parameters
    Type Name Description
    MetaFile meta
    MetaPage page
    Overrides
    PrintOut.NewPage(MetaFile, MetaPage)

    Print(MetaFile)

    Generate the PDF file in a single pass

    Declaration
    public override bool Print(MetaFile meta)
    Parameters
    Type Name Description
    MetaFile meta
    Returns
    Type Description
    bool
    Overrides
    PrintOut.Print(MetaFile)

    SetOrientation(OrientationType)

    Sets page orientation

    Declaration
    public override void SetOrientation(OrientationType PageOrientation)
    Parameters
    Type Name Description
    OrientationType PageOrientation

    Input value

    Overrides
    PrintOut.SetOrientation(OrientationType)

    SetPageSize(PageSizeDetail)

    Sets page size

    Declaration
    public override Point SetPageSize(PageSizeDetail psize)
    Parameters
    Type Name Description
    PageSizeDetail psize

    Input value

    Returns
    Type Description
    Point

    Size in twips of the page

    Overrides
    PrintOut.SetPageSize(PageSizeDetail)

    TextExtent(TextObjectStruct, Point)

    Obtain text extent

    Declaration
    public override Point TextExtent(TextObjectStruct aobj, Point extent)
    Parameters
    Type Name Description
    TextObjectStruct aobj
    Point extent
    Returns
    Type Description
    Point
    Overrides
    PrintOut.TextExtent(TextObjectStruct, Point)

    TextExtentLineInfo(TextObjectStruct, Point)

    Obtain text extent, fills LineInfo

    Declaration
    public Point TextExtentLineInfo(TextObjectStruct aobj, Point extent)
    Parameters
    Type Name Description
    TextObjectStruct aobj
    Point extent
    Returns
    Type Description
    Point

    WordExtent(string, Point)

    Obtain word extent using current settings

    Declaration
    public Point WordExtent(string text, Point extent)
    Parameters
    Type Name Description
    string text
    Point extent
    Returns
    Type Description
    Point

    Implements

    IDisposable
    In this article
    Back to top Generated by DocFX