The C1PrintDocument type exposes the following members.

Methods

  Name Description
Public method AddAnchor(String)
Adds an anchor (C1Anchor or C1AnchorText) at the current position in the document. Can be used only if IsStartEndDocMode is true.

This method is equivalent to AddAnchor(String, String, Object) with the last two parameters (description and user data) specified as null values.

Public method AddAnchor(String, String)
Adds an anchor (C1Anchor or C1AnchorText) at the current position in the document. Can be used only if IsStartEndDocMode is true.

This method is equivalent to AddAnchor(String, String, Object) with the last parameter (user data) specified as null value.

Public method AddAnchor(String, String, Object)
Adds an anchor (C1Anchor or C1AnchorText) at the current position in the document. Can be used only if IsStartEndDocMode is true.
Public method AdvanceBlockFlow
Advances the current block flow position by the specified distance.
Public method CanRenderBlock
Indicates whether rendering in the block flow is permitted now.
Public method CanRenderDirect
Indicates whether direct rendering is permitted now.
Public method Clear
Clears the current document, sets all properties to their default values.
Public method ClearGeneratedPages
Clears the pages and other info created during document generation. This method does not clear the document structure/content though.
Public method ConvertUnit(Unit, UnitTypeEnum)
Converts an absolute Unit value to the specified measurement units (this overload cannot convert to pixels).
Public method ConvertUnit(Unit, UnitTypeEnum, Single)
Converts an absolute Unit value to the specified measurement units.
Public method EditTags
Shows the tags input dialog, allows the user to enter/update the values of Tag objects contained in the Tags collection.
Public method EndDoc
Finishes generation of a document.
Public method Export(String)
Exports the document to a disk file.
Public method Export(Stream, ExportProvider)
Exports the document to a stream.
Public method Export(String, Boolean)
Exports the document to a disk file.
Public method Export(Stream, ExportProvider, Boolean)
Exports the document to a stream.
Public method Export(String, OutputRange, Boolean)
Exports the document to a disk file.
Public method Export(Stream, ExportProvider, OutputRange, Boolean)
Exports the document to a stream.
Public method Export(String, ExportProvider, OutputRange, Boolean)
Exports the document to a disk file.
Public method FindAnchor
Searches for an C1Anchor with the specified Name in the current document.
Public method FindInputFragment
Searches for the first occurrence of a RenderInputFragment object in the current document.
Public method Static member FromC1Report
Creates a new instance of the C1PrintDocument class representing the specified C1Report.
Public method Static member FromRdl Obsolete.
Creates a new instance of the C1PrintDocument class, and imports a RDL report definition into created document.
Public method FromRU(Double, UnitTypeEnum)
Converts a double value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units, using CreationDpi resolution if destType is Pixel.
Public method FromRU(OffsetsD, UnitTypeEnum)
Converts a OffsetsD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units, using CreationDpi resolution if destType is Pixel.
Public method FromRU(RectangleD, UnitTypeEnum)
Converts a RectangleD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units, using CreationDpi resolution if destType is Pixel.
Public method FromRU(Double, UnitTypeEnum, Single)
Converts a double value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.
Public method FromRU(Double, Single, Boolean)
Converts a double value expressed in the current document's ResolvedUnit units to Pixel units with resolution specified by destDpi.

Depending on the truncate parameter, the converted value is either simply truncated, or rounded (slower but more precise).

Public method FromRU(Region, UnitTypeEnum, Single, Single)
Transforms (scales) a Region object expressed in the current document's ResolvedUnit units so that it uses other UnitTypeEnum units.
Public method FromRU(OffsetsD, UnitTypeEnum, Single, Single)
Converts a OffsetsD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.
Public method FromRU(OffsetsD, Single, Single, Boolean)
Converts a OffsetsD value expressed in the current document's ResolvedUnit units to a Rectangle structure expressed in Pixel units, using the specified resolution.

Depending on the truncate parameter, the converted value is either simply truncated, or rounded (slower but more precise).

Public method FromRU(PointD, UnitTypeEnum, Single, Single)
Converts a PointD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.
Public method FromRU(RectangleD, UnitTypeEnum, Single, Single)
Converts a RectangleD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.
Public method FromRU(RectangleD, Single, Single, Boolean)
Converts a RectangleD value expressed in the current document's ResolvedUnit units to a Rectangle structure expressed in Pixel units, using the specified resolution.

Depending on the truncate parameter, the converted value is either simply truncated, or rounded (slower but more precise).

Public method Generate()()()()
Generates the current document, using the RefreshCalculatedValues refresh mode.
Public method Generate(RefreshModeEnum)
Generates the current document. Depending on the specified refresh mode, may update data-bound and calculated values.
Public method GetLengthAbsValue(LengthAbs, Font)
Converts an absolute length represented by a LengthAbs object to a double value expressed in the current document's ResolvedUnit units.
Public method GetLengthAbsValue(LengthAbs, Style, IScriptContext)
Converts an absolute length represented by a LengthAbs object to a double value expressed in the current document's ResolvedUnit units.
Public method HasEditableTags
Checks whether the document contains any tags that can be entered or changed in the tags input dialog.
Public method ImportC1Report
Imports a C1Report report definition into the current document.
Public method ImportRdl Obsolete.
Imports a RDL report definition into the current document.
Public method IsInlineStarted
Indicates whether an inline paragraph is currently being created on the document.
Public method Load(Stream)
Loads the current document from a stream. The stream should contain a document in C1d format.
Public method Load(String)
Loads the current document from a file. The persistence format (C1d or C1dx) is determined by the file extension. The format defaults to C1d if the format cannot be determined from the extension.
Public method Load(Stream, C1DocumentFormatEnum)
Loads the current document from a stream.
Public method Load(String, C1DocumentFormatEnum)
Loads the current document from a file.
Public method NewColumn
Begins a new column. If the current column is the last on the page then a new page will be started. Note that AllowNonReflowableDocs property on the document must be set to true for this method to work; otherwise, an exception will occur.
Public method NewLine
Begins a new line in inline flow, can be used only if current stacking is inline flow. Note that AllowNonReflowableDocs property on the document must be set to true for this method to work; otherwise, an exception will occur.
Public method NewPage()()()()
Creates a new page and adds it to the document.
Public method NewPage(PageLayout)
Creates a new page and adds it to the document.
Public method NewPage(PageLayout, PageDirectionEnum)
Creates a new page and adds it to the document. Note that AllowNonReflowableDocs property on the document must be set to true for this method to work; otherwise, an exception will occur.
Public method PageAsMetafile
Returns a Metafile representing the specified page.
Public method Print()()()()
Prints the current document with default printer settings, not showing the print progress dialog.
Public method Print(PrinterSettings)
Prints the current document with specified printer settings, not showing the print progress dialog.
Public method Print(PrinterSettings, OutputRange)
Prints a range of pages of the current document with specified printer settings, not showing the print progress dialog.
Public method Print(PrinterSettings, Boolean)
Prints the document with specified printer settings, optionally showing the print progress dialog.
Public method Print(PrinterSettings, OutputRange, Boolean)
Prints a range of pages of the current document with specified printer settings, optionally showing the print progress dialog.
Public method Print(PrinterSettings, PageSettings, OutputRange)
Prints a range of pages of the current document with specified printer and default page settings, not showing the print progress dialog.
Public method Print(PrinterSettings, PageSettings, Boolean)
Prints the current document with specified printer and default page settings, optionally showing the print progress dialog.
Public method Print(PrinterSettings, PageSettings, OutputRange, Boolean)
Prints a range of pages of the current document with specified printer and default page settings, optionally showing the print progress dialog.
Public method PrintDialog()()()()
Shows the standard print dialog, allowing the user to print the current document.
Public method PrintDialog(PrinterSettings, array<Int32>[]()[][], Boolean)
Shows the standard print dialog, allowing the user to print the current document.
Public method Reflow
Reflows the current document. If a handler has been assigned to the GenerateDocument event, that handler is invoked. Otherwise, the Generate()()()() method is called.
Public method RenderBlock
Adds a RenderObject into the block flow of the current document, and resolves it.

This method can only be used if IsStartEndDocMode is true.

Public method RenderBlockArc(Unit, Unit, Single, Single, LineDef)
Renders an arc into the block flow of the current document.
Public method RenderBlockArc(Unit, Unit, Single, Single, Style)
Renders an arc into the block flow of the current document.
Public method RenderBlockArc(Unit, Unit, Single, Single, LineDef, Brush)
Renders an arc into the block flow of the current document.
Public method RenderBlockArc(Unit, Unit, Single, Single, LineDef, Color)
Renders an arc into the block flow of the current document.
Public method RenderBlockArc(Unit, Unit, Single, Single, Color, Unit)
Renders an arc into the block flow of the current document.
Public method RenderBlockArc(Unit, Unit, Single, Single, Color, Unit, Color)
Renders an arc into the block flow of the current document.
Public method RenderBlockEllipse(Unit, Unit, LineDef)
Renders an ellipse into the block flow of the current document.
Public method RenderBlockEllipse(Unit, Unit, Style)
Renders an ellipse into the block flow of the current document.
Public method RenderBlockEllipse(Unit, Unit, LineDef, Brush)
Renders an ellipse into the block flow of the current document.
Public method RenderBlockEllipse(Unit, Unit, LineDef, Color)
Renders an ellipse into the block flow of the current document.
Public method RenderBlockEllipse(Unit, Unit, Color, Unit)
Renders an ellipse into the block flow of the current document.
Public method RenderBlockEllipse(Unit, Unit, Color, Unit, Color)
Renders an ellipse into the block flow of the current document.
Public method RenderBlockGraphicsBegin
Creates an internally maintained RenderGraphics object that can be used to add graphics to the block flow of the current document.
Public method RenderBlockGraphicsEnd
Adds the internally maintained RenderGraphics object created with a previous call to RenderBlockGraphicsBegin()()()() to the block flow of the current document.
Public method RenderBlockHorzLine
Renders a horizontal line with the specified width, starting at the left of the page, into the block flow of the current document.
Public method RenderBlockImage(Image)
Renders the Image.
Public method RenderBlockImage(Image, Object, Object, ImageAlign)
Renders the Image.
Public method RenderBlockImage(Image, Object, Object, Style)
Renders the Image.
Public method RenderBlockPie(Unit, Unit, Single, Single, LineDef)
Renders a pie into the block flow of the current document.
Public method RenderBlockPie(Unit, Unit, Single, Single, Style)
Renders a pie into the block flow of the current document.
Public method RenderBlockPie(Unit, Unit, Single, Single, LineDef, Brush)
Renders a pie into the block flow of the current document.
Public method RenderBlockPie(Unit, Unit, Single, Single, LineDef, Color)
Renders a pie into the block flow of the current document.
Public method RenderBlockPie(Unit, Unit, Single, Single, Color, Unit)
Renders a pie into the block flow of the current document.
Public method RenderBlockPie(Unit, Unit, Single, Single, Color, Unit, Color)
Renders a pie into the block flow of the current document.
Public method RenderBlockRectangle(Unit, Unit, LineDef)
Renders a rectangle into the block flow of the current document.
Public method RenderBlockRectangle(Unit, Unit, Style)
Renders a rectangle into the block flow of the current document.
Public method RenderBlockRectangle(Unit, Unit, LineDef, Brush)
Renders a rectangle into the block flow of the current document.
Public method RenderBlockRectangle(Unit, Unit, LineDef, Color)
Renders a rectangle into the block flow of the current document.
Public method RenderBlockRectangle(Unit, Unit, Color, Unit)
Renders a rectangle into the block flow of the current document.
Public method RenderBlockRectangle(Unit, Unit, Color, Unit, Color)
Renders a rectangle into the block flow of the current document.
Public method RenderBlockRichText(String)
Renders the RTF text with parent width and autoheight.
Public method RenderBlockRichText(String, Object)
Renders the RTF text with autoheight.
Public method RenderBlockRichText(String, Object, Object, Style)
Renders the RTF text.
Public method RenderBlockText(String)
Renders a block of text into the block flow of the current document.
Public method RenderBlockText(String, AlignHorzEnum)
Renders a block of text into the block flow of the current document, using the specified horizontal alignment.
Public method RenderBlockText(String, Style)
Renders a block of text into the block flow of the current document, using the specified Style.
Public method RenderBlockText(String, Color)
Renders a block of text into the block flow of the current document, using the specified text color.
Public method RenderBlockText(String, Font)
Renders a block of text into the block flow of the current document, using the specified font.
Public method RenderBlockText(String, Font, AlignHorzEnum)
Renders a block of text into the block flow of the current document, using the specified font and horizontal alignment.
Public method RenderBlockText(String, Font, Color)
Renders a block of text into the block flow of the current document, using the specified font and text color.
Public method RenderBlockText(String, Font, Color, AlignHorzEnum)
Renders a block of text into the block flow of the current document, using the specified font, text color and horizontal alignment.
Public method RenderBlockText(String, Object, Object, Style)
Renders a block of text with the specifed width and height into the block flow of the current document, using the specified Style.
Public method RenderBlockVertLine
Renders a vertical line with the specified height, starting at the current position, into the block flow of the current document.
Public method RenderDirect(Unit, Unit, RenderObject)
Adds a RenderObject to the Body of the current document at a specific position on the current page, and resolves it.

This method can only be used if IsStartEndDocMode is true.

Public method RenderDirect(Unit, Unit, RenderObject, Object, Object)
Adds a RenderObject to the Body of the current document at a specific position on the current page, and resolves it.

This method can only be used if IsStartEndDocMode is true.

Public method RenderDirectArc(Unit, Unit, Unit, Unit, Single, Single, LineDef)
Adds an arc to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectArc(Unit, Unit, Unit, Unit, Single, Single, Style)
Adds an arc to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectArc(Unit, Unit, Unit, Unit, Single, Single, LineDef, Brush)
Adds an arc to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectArc(Unit, Unit, Unit, Unit, Single, Single, LineDef, Color)
Adds an arc to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectArc(Unit, Unit, Unit, Unit, Single, Single, Color, Unit)
Adds an arc to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectArc(Unit, Unit, Unit, Unit, Single, Single, Color, Unit, Color)
Adds an arc to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectEllipse(Unit, Unit, Unit, Unit, LineDef)
Adds an ellipse to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectEllipse(Unit, Unit, Unit, Unit, Style)
Adds an ellipse to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectEllipse(Unit, Unit, Unit, Unit, LineDef, Brush)
Adds an ellipse to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectEllipse(Unit, Unit, Unit, Unit, LineDef, Color)
Adds an ellipse to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectEllipse(Unit, Unit, Unit, Unit, Color, Unit)
Adds an ellipse to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectEllipse(Unit, Unit, Unit, Unit, Color, Unit, Color)
Adds an ellipse to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectGraphicsBegin
Creates an internally maintained RenderGraphics object that can be used to add graphics at a specific position to the Body of the document on the current page.
Public method RenderDirectGraphicsEnd
Renders the internally maintained RenderGraphics object created with a previous call to RenderDirectGraphicsBegin(Unit, Unit) onto the current page of the document.
Public method RenderDirectImage(Unit, Unit, Image)
Adds an Image to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectImage(Unit, Unit, Image, Object, Object, ImageAlign)
Adds an Image to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectImage(Unit, Unit, Image, Object, Object, Style)
Adds an Image to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectLine(Unit, Unit, Unit, Unit, LineDef)
Adds a line to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectLine(Unit, Unit, Unit, Unit, Color, Unit)
Adds a line to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectPie(Unit, Unit, Unit, Unit, Single, Single, LineDef)
Adds a pie to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectPie(Unit, Unit, Unit, Unit, Single, Single, Style)
Adds a pie to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectPie(Unit, Unit, Unit, Unit, Single, Single, LineDef, Brush)
Adds a pie to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectPie(Unit, Unit, Unit, Unit, Single, Single, LineDef, Color)
Adds a pie to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectPie(Unit, Unit, Unit, Unit, Single, Single, Color, Unit)
Adds a pie to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectPie(Unit, Unit, Unit, Unit, Single, Single, Color, Unit, Color)
Adds a pie to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectPolygon(IEnumerable, LineDef)
Creates an open RenderPolygon from a collection of UnitPoint objects, and renders it on the current page, at position specified by the points' coordinates.
Public method RenderDirectPolygon(IEnumerable, LineDef, Brush)
Creates a RenderPolygon from a collection of UnitPoint objects, and renders it on the current page, at position specified by the points' coordinates.

If fillBrush is null, the polygon is open, otherwise it is closed.

Public method RenderDirectPolygon(IEnumerable, LineDef, Color)
Creates a RenderPolygon from a collection of UnitPoint objects, and renders it on the current page, at position specified by the points' coordinates.

If fillColor specifies a non-empty and non-transparent color, the polygon is closed, otherwise it is open.

Public method RenderDirectPolygon(IEnumerable, Boolean, Style)
Creates a RenderPolygon from a collection of UnitPoint objects, and renders it on the current page, at position specified by the points' coordinates.
Public method RenderDirectPolygon(IEnumerable, Color, Unit)
Creates an open RenderPolygon from a collection of UnitPoint objects, and renders it on the current page, at position specified by the points' coordinates.
Public method RenderDirectPolygon(IEnumerable, Color, Unit, Color)
Creates a RenderPolygon from a collection of UnitPoint objects, and renders it on the current page, at position specified by the points' coordinates.

If fillColor specifies a non-empty and non-transparent color, the polygon is closed, otherwise it is open.

Public method RenderDirectRectangle(Unit, Unit, Unit, Unit, LineDef)
Adds a rectangle to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectRectangle(Unit, Unit, Unit, Unit, Style)
Adds a rectangle to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectRectangle(Unit, Unit, Unit, Unit, LineDef, Brush)
Adds a rectangle to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectRectangle(Unit, Unit, Unit, Unit, LineDef, Color)
Adds a rectangle to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectRectangle(Unit, Unit, Unit, Unit, Color, Unit)
Adds a rectangle to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectRectangle(Unit, Unit, Unit, Unit, Color, Unit, Color)
Adds a rectangle to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectRichText(Unit, Unit, String, Object)
Adds an RTF-formatted string to the Body of the current document at a specific position on the current page with auto height, and resolves it.
Public method RenderDirectRichText(Unit, Unit, String, Object, Object, Style)
Adds an RTF-formatted string to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectText(Unit, Unit, String, Object, Object, Style)
Adds a text to the Body of the current document at a specific position on the current page, and resolves it.
Public method RenderDirectText(Unit, Unit, String, Object, Font, Color, AlignHorzEnum)
Adds a text to the Body of the current document at a specific position on the current page, with auto height, and resolves it.
Public method RenderInline
Renders a ParagraphObject into the current inline paragraph.
Public method RenderInlineBegin
Begins rendering of a new inline paragraph into the Body of the current document, using the specified Style and dimensions.
Public method RenderInlineEnd
Ends rendering of the current inline paragraph.
Public method RenderInlineImage(Image)
Renders an Image into the current inline paragraph.
Public method RenderInlineImage(Image, Style)
Renders an Image into the current inline paragraph, using the specified Style.
Public method RenderInlineText(String)
Renders a string into the current inline paragraph.
Public method RenderInlineText(String, Style)
Renders a string into the current inline paragraph, using the specified style.
Public method RenderInlineText(String, Color)
Renders a string into the current inline paragraph, using the specified text color.
Public method RenderInlineText(String, Font)
Renders a string into the current inline paragraph, using the specified font.
Public method RenderInlineText(String, FontStyle)
Renders a string into the current inline paragraph, using the specified font style.
Public method RenderInlineText(String, Font, Color)
Renders a string into the current inline paragraph, using the specified font and text color.
Public method Save(Stream)
Saves the current document to a stream using the C1d format.
Public method Save(String)
Saves the current document to a disk file. The persistense format (C1d or C1dx) is determined by the specified file extension. The save format defaults to C1d if the format cannot be determined from the extension.
Public method Save(Stream, C1DocumentFormatEnum)
Saves the current document to a stream using the specified format.
Public method Save(String, C1DocumentFormatEnum)
Saves the current document to a disk file using the specified format.
Public method Static member SelectBestMeasurementDevice
Selects a device to use for MeasurementGraphics. This method looks for a printer with a "square" resolution (i.e. with the same horizontal and vertical DPI) equal to or larger than 300 DPI. If such a printer is found, it is assigned to MeasurementPrinterName, and MeasurementDevice is set to Printer. Otherwise, MeasurementDevice is set to Screen. The selected device's resolution is returned by MeasurementDpi.
Public method StartDoc
Starts a new document.
Public method ToRU(Double, UnitTypeEnum)
Converts a double value expressed in specified UnitTypeEnum units to a double value expressed in the current document's ResolvedUnit units, using CreationDpi as the source resolution if srcType is Pixel.
Public method ToRU(RectangleD, UnitTypeEnum)
Converts a RectangleD structure expressed in specified UnitTypeEnum units to a RectangleD expressed in the current document's ResolvedUnit units, using CreationDpi as the source resolution if srcType is Pixel.
Public method ToRU(Double, UnitTypeEnum, Single)
Converts a double value expressed in specified UnitTypeEnum units to a double value expressed in the current document's ResolvedUnit units.
Public method ToRU(RectangleD, UnitTypeEnum, Single, Single)
Converts a RectangleD structure expressed in specified UnitTypeEnum units to a RectangleD expressed in the current document's ResolvedUnit units.

See Also