Skip to main content

DocumentLayout

Version: 10.0

cete.dynamicpdf.reportwriter.documentlayout

DocumentLayout​

Represents a Document based on the supplied DPLX file.

public class DocumentLayout
Public Class DocumentLayout

Inheritance: Object → DocumentLayout

Licensing​

This class is a DynamicPDF ReportWriter Professional Edition feature. One of the following licenses is required for non-evaluation usage:

  • DynamicPDF ReportWriter for .NET Professional Edition
  • DynamicPDF ReportWriter for .NET Enterprise Edition
  • DynamicPDF Core Suite for .NET Professional Edition
  • DynamicPDF Core Suite for .NET Enterprise Edition

Constructors​

DocumentLayout(DplxFile)​

Initializes a new instance of the DocumentLayout class.

public DocumentLayout(DplxFile dplx)
Public Sub New (dplx As DplxFile)

Parameters​

The DplxFile to use to create the DocumentLayout class.

DocumentLayout(String)​

Initializes a new instance of the DocumentLayout class.

public DocumentLayout(string filePath)
Public Sub New (filePath As String)

Parameters​

The physical file path of the DPLX file to use.

Properties​

AppSettings​

Gets the static application settings ParameterDictionary of the document layout.

public static ParameterDictionary AppSettings { get; }
Public Shared Property AppSettings As ParameterDictionary

Property Value​

ParameterDictionary

Author​

Gets or sets the author of the DocumentLayout .

public string Author { get; set; }
Public Property Author As String

Property Value​

String

BasePhysicalPath​

Gets or sets the base physical path of the document layout.

public string BasePhysicalPath { get; set; }
Public Property BasePhysicalPath As String

Property Value​

String

ConnectionStrings​

Gets the static connection string ParameterDictionary of the document layout.

public static ParameterDictionary ConnectionStrings { get; }
Public Shared Property ConnectionStrings As ParameterDictionary

Property Value​

ParameterDictionary

FontFamilies​

Gets the FontFamilyList object of the document layout.

public FontFamilyList FontFamilies { get; }
Public Property FontFamilies As FontFamilyList

Property Value​

FontFamilyList

Fonts​

Gets the FontList object of the document layout.

public FontList Fonts { get; }
Public Property Fonts As FontList

Property Value​

FontList

FormatProvider​

Gets or sets the IFormatProvider of the document layout.

public IFormatProvider FormatProvider { get; set; }
Public Property FormatProvider As IFormatProvider

Property Value​

IFormatProvider

Id​

Gets or sets the ID of the DocumentLayout .

public string Id { get; set; }
Public Property Id As String

Property Value​

String

Keywords​

Gets or sets the keywords of the DocumentLayout .

public string Keywords { get; set; }
Public Property Keywords As String

Property Value​

String

LayoutParts​

Gets or sets the DocumentLayoutPartList of the document layout.

public DocumentLayoutPartList LayoutParts { get; set; }
Public Property LayoutParts As DocumentLayoutPartList

Property Value​

DocumentLayoutPartList

Subject​

Gets or sets the subject of the DocumentLayout .

public string Subject { get; set; }
Public Property Subject As String

Property Value​

String

Tag​

Gets or sets a value indicating whether document is tagged.

public bool Tag { get; set; }
Public Property Tag As Boolean

Property Value​

Boolean

Title​

Gets or sets the title of the DocumentLayout .

public string Title { get; set; }
Public Property Title As String

Property Value​

String

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

GetElementById(String)​

Returns the Object that matches the supplied id.

public Object GetElementById(string id)
Function GetElementById(id As String) As Object

Parameters​

The id of the object to retrieve.

Returns​

The element with the supplied id.

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetQueryById(String)​

Returns the Query that matches the supplied id.

public Query GetQueryById(string id)
Function GetQueryById(id As String) As Query

Parameters​

The id of the Query to retrieve.

Returns​

The Query with the supplied id.

GetReportElementById(String)​

Returns the ReportElement that matches the supplied id.

public ReportElement GetReportElementById(string id)
Function GetReportElementById(id As String) As ReportElement

Parameters​

The id of the ReportElement to retrieve.

Returns​

The ReportElement with the supplied id.

GetReportPartById(String)​

Returns the ReportPart that matches the supplied id.

public ReportPart GetReportPartById(string id)
Function GetReportPartById(id As String) As ReportPart

Parameters​

The id of the ReportPart to retrieve.

Returns​

The ReportPart with the supplied id.

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Run()​

Creates a Document object that contians the report as defined in the DPLX file.

public Document Run()
Function Run() As Document

Returns​

The Document object containing just created.

Run(Document)​

Appends the report to the given Document object.

public void Run(Document document)
Sub Run(document As Document)

Parameters​

Document object to which the report is appended.

Remarks​

NOTE: The documents metadata (title, author etc.) will not be overwritten.

Run(ParameterDictionary)​

Creates a Document object that contians the report as defined in the DPLX file.

public Document Run(ParameterDictionary parameters)
Function Run(parameters As ParameterDictionary) As Document

Parameters​

The ParameterDictionary to use for creating the report.

Returns​

The Document object containing just created.

Run(ParameterDictionary, Document)​

Appends the report to the given Document object.

public void Run(ParameterDictionary parameters, Document document)
Sub Run(parameters As ParameterDictionary, document As Document)

Parameters​

The ParameterDictionary to use for creating the report.

Document object to which the report is appended.

Remarks​

NOTE: The documents metadata (title, author etc.) will not be overwritten.

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Events​

DocumentLaidOut​

Occurs after the document`s pages are laid out.

public event DocumentLayoutEventHandler DocumentLayout.DocumentLaidOut;
Public Event DocumentLayout.DocumentLaidOut As DocumentLayoutEventHandler

Event Handler​

DocumentLayoutEventHandler

DocumentLayingOut​

Occurs before the document`s pages are laid out.

public event DocumentLayoutEventHandler DocumentLayout.DocumentLayingOut;
Public Event DocumentLayout.DocumentLayingOut As DocumentLayoutEventHandler

Event Handler​

DocumentLayoutEventHandler

See Also​

ceTe.DynamicPDF.ReportWriter