ComponentOne VSView Reporting Edition
RenderToFileWithLock Method

Renders a report into a file and is thread-safe for use in ASP applications.

Syntax

[form!]VSReport.RenderToFileWithLock 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.

This is similar to the RenderToFile method, except it is thread-safe for use in ASP applications.

The parameters for the RenderToFileWithLock 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