short ExportVisualReport(long QueryID, short SourceType, BSTR Source, BSTR OutputFileName, BOOL SplitPages, short PageOrder, short Width, short Height, short Units, BSTR PageSeparator)
Description
This function creates a visual report and writes it to an HTML file.
Parameters
Name | Description |
---|---|
QueryID | The ID of the query, as returned from InitializeQuery(). GetPreferredDataSource should be used to obtain owner and name of the query for the visual report. |
SourceType | The source for the visual report. |
|
|
Source | A string containing the database owner name (owner.name) or the filename of the visual report. |
OutputFileName | Specifies the name of the file to which you want to write the report. |
SplitPages | Specifies whether the report will be split into pages. |
PageOrder |
Controls how the visual report will be split into pages.
|
Width | Specifies the width in Units for a Visual Report page. Zero (0) means continuous. |
Height | Specifies the height in Units for a Visual Report page. Zero (0) means continuous. |
Units |
Specifies the measurement units that are used with Width and Height.
|
PageSeparator | Specifies a string that will be used as a page separator. |
Return Value
Return value will be zero if successful or non=zero if unsuccessful. If the return value is non=zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.
Related Tasks