Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / C1PrintDocument Class


In This Topic
    C1PrintDocument Class Methods
    In This Topic

    For a list of all members of this type, see C1PrintDocument members.

    Public Methods
     NameDescription
    Public MethodOverloaded. Adds an anchor (C1Anchor or C1AnchorText) at the current position in the document. Can be used only if IsStartEndDocMode is true.  
    Public MethodAdvances the current block flow position by the specified distance.  
    Public MethodIndicates whether rendering in the block flow is permitted now.  
    Public MethodIndicates whether direct rendering is permitted now.  
    Public MethodClears the current document, sets all properties to their default values.  
    Public MethodClears the pages and other info created during document generation. This method does not clear the document structure/content though.  
    Public MethodOverloaded. Converts an absolute Unit value to the specified measurement units (this overload cannot convert to pixels).  
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverloaded. Overridden. Releases the resoureces used by C1PrintDocument.  
    Public MethodShows the tags input dialog, allows the user to enter/update the values of Tag objects contained in the Tags collection.  
    Public MethodFinishes generation of a document.  
    Public MethodOverloaded. Exports the document to a disk file.  
    Public MethodSearches for an C1Anchor with the specified Name in the current document.  
    Public MethodSearches for the first occurrence of a RenderInputFragment object in the current document.  
    Public Methodstatic (Shared in Visual Basic)Creates a new instance of the C1PrintDocument class representing the specified C1.C1Report.C1Report.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Creates a new instance of the C1PrintDocument class, and loads the document from the specified file.  
    Public Methodstatic (Shared in Visual Basic)Creates a new instance of the C1PrintDocument class, and imports a RDL report definition into created document.  
    Public MethodOverloaded. Converts a double value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Creates a new instance of C1PrintDocument class, and loads the document from the specified stream.  
    Public MethodOverloaded. Generates the current document, using the RefreshModeEnum.RefreshCalculatedValues refresh mode.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Converts an absolute length represented by a LengthAbs object to a double value expressed in the current document's ResolvedUnit units.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodChecks whether the document contains any tags that can be entered or changed in the tags input dialog.  
    Public MethodImports a C1.C1Report.C1Report report definition into the current document.  
    Public MethodImports a RDL report definition into the current document.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodIndicates whether an inline paragraph is currently being created on the document.  
    Public MethodOverloaded. Loads the current document from a stream. The stream should contain a document in C1DocumentFormatEnum.C1d format.  
    Public MethodBegins 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 MethodBegins 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 MethodOverloaded. 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 MethodReturns a System.Drawing.Imaging.Metafile representing the specified page.  
    Public MethodOverloaded. Prints the current document with default printer settings, not showing the print progress dialog.  
    Public MethodOverloaded. Shows the standard print dialog, allowing the user to print the current document.  
    Public MethodReflows the current document. If a handler has been assigned to the GenerateDocument event, that handler is invoked. Otherwise, the Generate method is called.  
    Public MethodAdds a RenderObject into the block flow of the current document, and resolves it.

    This method can only be used if IsStartEndDocMode is true.

     
    Public MethodOverloaded. Renders an arc into the block flow of the current document.  
    Public MethodOverloaded. Renders an ellipse into the block flow of the current document.  
    Public MethodCreates an internally maintained RenderGraphics object that can be used to add graphics to the block flow of the current document.  
    Public MethodAdds the internally maintained RenderGraphics object created with a previous call to RenderBlockGraphicsBegin to the block flow of the current document.  
    Public MethodRenders a horizontal line with the specified width, starting at the left of the page, into the block flow of the current document.  
    Public MethodOverloaded. Renders the Image.  
    Public MethodOverloaded. Renders a pie into the block flow of the current document.  
    Public MethodOverloaded. Renders a rectangle into the block flow of the current document.  
    Public MethodOverloaded. Renders the RTF text.  
    Public MethodOverloaded. Renders a block of text into the block flow of the current document.  
    Public MethodRenders a vertical line with the specified height, starting at the current position, into the block flow of the current document.  
    Public MethodOverloaded. 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 MethodOverloaded. Adds an arc to the Body of the current document at a specific position on the current page, and resolves it.  
    Public MethodOverloaded. Adds an ellipse to the Body of the current document at a specific position on the current page, and resolves it.  
    Public MethodCreates 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 MethodRenders the internally maintained RenderGraphics object created with a previous call to RenderDirectGraphicsBegin onto the current page of the document.  
    Public MethodOverloaded. Adds an System.Drawing.Image to the Body of the current document at a specific position on the current page, and resolves it.  
    Public MethodOverloaded. Adds a line to the Body of the current document at a specific position on the current page, and resolves it.  
    Public MethodOverloaded. Adds a pie to the Body of the current document at a specific position on the current page, and resolves it.  
    Public MethodOverloaded. Creates a RenderPolygon from a collection of UnitPoint objects, and renders it on the current page, at position specified by the points' coordinates.  
    Public MethodOverloaded. Adds a rectangle to the Body of the current document at a specific position on the current page, and resolves it.  
    Public MethodOverloaded. Adds an RTF-formatted string to the Body of the current document at a specific position on the current page, and resolves it.  
    Public MethodOverloaded. Adds a text to the Body of the current document at a specific position on the current page, and resolves it.  
    Public MethodRenders a ParagraphObject into the current inline paragraph.  
    Public MethodBegins rendering of a new inline paragraph into the Body of the current document, using the specified Style and dimensions.  
    Public MethodEnds rendering of the current inline paragraph.  
    Public MethodOverloaded. Renders an System.Drawing.Image into the current inline paragraph.  
    Public MethodOverloaded. Renders a string into the current inline paragraph, using the specified style.  
    Public MethodOverloaded. Saves the current document to a disk file. The persistense format (C1DocumentFormatEnum.C1d or C1DocumentFormatEnum.C1dx) is determined by the specified file extension. The save format defaults to C1DocumentFormatEnum.C1d if the format cannot be determined from the extension.  
    Public Methodstatic (Shared in Visual Basic)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 MeasurementDeviceEnum.Printer. Otherwise, MeasurementDevice is set to MeasurementDeviceEnum.Screen. The selected device's resolution is returned by MeasurementDpi.  
    Public MethodStarts a new document.  
    Public MethodOverloaded. Converts a double value expressed in specified UnitTypeEnum units to a double value expressed in the current document's ResolvedUnit units.  
    Public Method (Inherited from System.ComponentModel.Component)
    Top
    Protected Methods
     NameDescription
    Protected MethodCalled when the document has finished generating. Executes the DocumentEndedScript script. See remarks in OnDocumentStarting method for details and order of events.  
    Protected MethodCalled when the document is starting to generate. Executes the DocumentStartingScript script. See remarks in OnDocumentStarting method for details and order of events.  
    Protected Method (Inherited from System.ComponentModel.Component)
    Protected Method (Inherited from System.ComponentModel.Component)
    Protected MethodPerforms some initializations: creates the sub-objects (PageHeader, PageFooter etc) initializes DefaultPageSettings and so on.  
    Protected MethodOverloaded.  (Inherited from System.MarshalByRefObject)
    Protected MethodCalled when the Pages collection is about to be cleared. Raises the BeforePagesClear event.  
    Protected MethodCalled when the BusyState property value has changed.  
    Protected MethodCalled when the DefaultUnit property value has changed.  
    Protected MethodCalled when the document has finished generating. Raises the DocumentEnded event. The BusyState property is set to BusyStateEnum.Ready before this method is called. See remarks in OnDocumentStarting method for more details.  
    Protected MethodCalled when the document is starting to generate. Raises the DocumentStarting event. The BusyState property is set to BusyStateEnum.Generating after this method returns. See remarks for more details.  
    Protected MethodRaises the FormsStyleChanged event.  
    Protected MethodRaises the GenerateDocument event.  
    Protected MethodCalled during document generation after a C1Page has completely generated, raises the PageAdded event.  
    Protected MethodCalled when a new empty page is created and added to the current document, raises the PageConfigure event. When this method is called, the C1Page has already been added to the Pages collection but has not yet been resolved. If overridden in a derived class, must call the base method; can be used to change the layout of the new page.  
    Protected MethodCalled when a page is removed from the Pages collection.  
    Protected MethodCalled after the Pages collection has been cleared. Raises the PagesClear event.  
    Protected MethodCalled during document generation after a C1Page has updated, raises the PageUpdated event.

    This method is called each time a RenderObject's fragment (RenderFragment) is added to or removed from the page (i.e. this method is called very often while the document generates).

    See also OnPageChanged.

     
    Protected MethodCalled when the ResolvedUnit property value has changed.  
    Protected MethodIndicates whether the AutoEmbedFonts property should be serialized.  
    Protected MethodIndicates whether the Style property should be serialized.  
    Protected MethodIndicates whether the TagCloseParen property should be serialized.  
    Protected MethodIndicates whether the TagEscapeString property should be serialized.  
    Protected MethodIndicates whether the TagOpenParen property should be serialized.  
    Protected MethodIndicates whether the TagsInputDialogClassName property should be serialized.  
    Top
    See Also