The C1Report type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddScriptObject(String, Object) |
Adds an object to the report's script context.
|
|
AddScriptObject(String, Object, Boolean) |
Adds an object to the report's script context.
|
|
BeginInit |
Signals the object that initialization is starting.
|
|
Clear |
Clears the current report.
|
|
ClearGeneratedPages |
Clears the pages and other info created during report generation.
This method does not clear the report definition though.
|
|
CopyFrom |
Copies a report definition from another C1Report component.
|
|
EndInit |
Signals the object that initialization is complete.
|
|
Evaluate |
Evaluates a VBScript expression in the current report context.
|
|
Execute |
Executes a VBScript statement in the current report context.
|
|
GetPageCount |
Gets the total number of pages in the generated report.
Use this method rather than Count on the PageImages collection
as accessing that property creates images for all pages at once
and thus can exhaust system resources.
|
|
GetPageImage |
Gets a metafile representing the specified page.
Use this method rather than the PageImages collection
as accessing that property creates images for all pages at once
and thus can exhaust system resources.
|
|
GetPageImages |
Enumerates page images (represented by metafiles) of the generated report.
Using this method in a "foreach" loop allows to iterate over all pages of a large report
without exhausting system resources.
This approach is preferable to PageImages property that creates images
for all pages and can consume a large amount of resources.
|
|
GetReportInfo(String) |
Gets a list of reports available in an XML report definition file.
|
|
GetReportInfo(XmlDocument) |
Gets a list of reports available in an XmlDocument.
|
|
GetReportList(Stream) |
Gets a list of reports available in an XML report definition file.
|
|
GetReportList(String) |
Gets a list of reports available in an XML report definition file.
|
|
GetReportList(XmlDocument) |
Gets a list of reports available in an XmlDocument.
|
|
Load(Stream, String) |
Loads a report from an XML report definition in stream.
|
|
Load(String, String) |
Loads a report from an XML report definition file.
|
|
Load(XmlDocument, String) |
Loads a report from an XmlDocument.
|
|
ParseExpression |
Parses a VBScript expression in the current report context.
|
|
ParseStatement |
Parses a VBScript statement in the current report context.
|
|
Render |
Renders the report into an internal collection of images.
|
|
RenderToFile |
Renders the report into a file.
|
|
RenderToFilter |
Renders the report into an ExportFilter object.
|
|
RenderToStream(Stream, FileFormatEnum) |
Renders the report into a Stream object.
|
|
RenderToStream(Stream, FileFormatEnum, String, String) |
Renders the report into an Html Stream.
|
|
Save(String) |
Saves the current report definition to a file.
|
|
Save(XmlTextWriter) |
Saves the current report definition to an XmlTextWriter object.
|
|
Save(String, Boolean) |
Saves the current report definition to a file.
|
|
Save(XmlTextWriter, Boolean) |
Saves the current report definition to an XmlTextWriter object.
|
|
Save(Stream, Boolean, Boolean) |
Saves the current report definition to a stream.
|
|
Save(String, Boolean, Boolean) |
Saves the current report definition to a file.
|
|
Save(XmlTextWriter, Boolean, Boolean) |
Saves the current report definition to an XmlTextWriter object.
|
Properties
Name | Description | |
---|---|---|
C1Document |
Gets a C1PrintDocument object that represents content of the report.
|
|
Cancel |
Specifies whether to cancel generation of the current report.
|
|
ColorizeHyperlinks |
Gets or sets a value indicating whether hyperlinks in the report are colorized automatically.
The default is false (which is compatible with older versions of C1Report). |
|
DataSource |
Gets a reference to the report's DataSource object.
|
|
Document |
Gets a PrintDocument object that can be used to render the report to a printer or
into a print preview control.
|
|
DoEvents |
Specifies whether the control should handle Windows messages while rendering reports.
|
|
EmfType |
Gets or sets the type of metafiles created by the current report.
The default is EmfOnly.
|
|
ExposeScriptObjects |
Specifies whether script objects added with the AddScriptObject(String, Object)
method should be exposed to subreports.
|
|
Fields |
Gets the collection of Field objects in the report definition.
|
|
Font |
Gets or sets the default font for new fields.
|
|
GeneratingComplete |
If the current report is generating (see IsBusy),
gets the approximate completion ratio, from 0 (0% complete) to 1 (100% complete).
If the report is currently not generating, gets 1.
|
|
Groups |
Gets a collection with all the groups in the report.
|
|
GrowShrinkMode |
Gets or sets the method used to process CanGrow/CanShrink fields.
|
|
IgnoreScriptErrors |
Specifies whether the component should ignore script errors by default.
|
|
IsBusy |
Gets a value that determines whether a report is currently being generated.
|
|
LabelOffset |
Gets or sets the position of the first label on a partially used sheet.
|
|
Layout |
Gets a reference to the report's Layout object.
|
|
MaxPages |
Gets or sets the maximum number of pages allowed for a report.
|
|
OnClose |
Gets or sets the VBScript that is executed when the report finishes rendering.
|
|
OnError |
Gets or sets the VBScript that is executed when an error occurs.
|
|
OnNoData |
Gets or sets the VBScript that is executed when the report starts rendering and its source recordset is empty.
|
|
OnOpen |
Gets or sets the VBScript that is executed when the report starts rendering.
|
|
OnPage |
Gets or sets the VBScript that is executed when a new page is created.
|
|
OutlineRootLevel |
Gets or sets the starting outline level for the groups in this report.
|
|
Page |
Gets or sets the current page number.
|
|
PageImages | Obsolete.
Gets a list of Metafile objects that correspond to the pages in the report.
Using this property on large reports is not recommended as it creates images for all pages at once
and thus can exhaust system resources. Instead, use GetPageImages()()()(),
GetPageImage(Int32) and GetPageCount()()()() methods.
|
|
ParentReport |
Gets the main report that contains this subreport (null for main reports).
|
|
RecordsPerPage |
Gets or sets the number of detail records to render per page or group.
|
|
ReportDefinition |
Gets or sets an Xml string containing the complete report definition.
|
|
ReportInfo |
Gets or sets a ReportInfo object containing report metadata.
|
|
ReportName |
Gets or sets the name of the report (used with the Load method).
|
|
Sections |
Gets the collection of Section objects in the report definition.
|
|
Tag |
Gets or sets extra data needed by the calling program.
|
|
UseGdiPlusTextRendering |
Gets or sets a value indicating whether all text in the current report
should be rendered using GDI+ text API.
The default value is false. |
|
UsePrinterResolution |
Specifies whether the component should use the .NET printing support to obtain high-resolution graphics.
|
Events
Name | Description | |
---|---|---|
AddOutlineEntry |
Fired before the control adds an outline entry to the report.
|
|
EndPage |
Fired when the control finishes rendering each page.
|
|
EndReport |
Fired when the control finishes rendering the report.
|
|
EndSection |
Fired when the control finishes rendering each Section.
|
|
InitializeParametersDialog |
Fired before the control displays the Report Parameters dialog.
|
|
LongOperation |
Occurs periodically during document generation.
Allows to provide progress indication and the ability to cancel generation to the user.
|
|
NoData |
Fired when the control starts rendering a report and the data source is empty.
|
|
PrintSection |
Fired before each Section is printed (after it has been formatted.)
|
|
ReportError |
Fired when an error occurs while rendering a report.
|
|
StartPage |
Fired when the control starts rendering each page.
|
|
StartReport |
Fired when the control starts rendering the report, before it opens the source recordset.
|
|
StartSection |
Fired before each Section is formatted.
|