ComponentOne VSView Reporting Edition
RenderToFile Method

Renders a report into a file.

Syntax

[form!]VSReport.RenderToFile FileName As String, Format As FileFormatSettings

Remarks

This method causes the control to render the current report into a file. It is especially useful in server applications that create several reports in batch mode, and don't have a user interface. The parameters for the RenderToFile method are described below:

FileName As String

This parameter contains the name of the file to be created. If the file already exists, it will be overwritten.

Format As FileFormatSettings

This parameter determines the format of the export file. Valid settings are:

 

Constant

Value

Description

vsrVSPrinter

0

VSPrinter format. These files can be loaded into a VSPrinter8 control using VSPrinter's LoadDoc method or URL property.

vsrHTML

1

Plain HTML format. This setting creates a single HTML file that can be viewed in any Web browser.

vsrHTMLPaged

2

Paged HTML format. This setting creates one HTML file for each page in the report, with links to navigate between pages.

vsrHTMLDrillDown

3

Drill-down HTML format. This setting creates a single HTML file with collapsible headings. When viewed in the Internet Explorer browser, double-clicking group headers causes them to collapse and expand to show the detail.

vsrPDF

4

Adobe's PDF format. This setting creates a PDF file that can be viewed using Adobe Acrobat software.

vsrPDFUncompressed

5

Adobe's PDF format.  This setting creates an uncompressed PDF file that can be viewed using Adobe Acrobat software.  This setting is mostly useful for debugging, because the PDF generated is not compressed.

vsrText

6

Plain text.

vsrRTF

7

RTF format.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback