Report.SetOutputToFile

Sets the output properties of the report based on the parameters passed. Call this before calling CreateOutput().

public bool SetOutputToFile(string FileName,
	string Type);

Return Value

True if the parameters were correct or False if not.

Parameters

FileName
The name and path of the file to output the report to. If the file already exists, it's overwritten.

Type
The type of file to create. This is the same as a file extension: "PDF" for a PDF file, "XLS" for a Microsoft Excel file, "DOC" for a Microsoft Word file, "HTML" for an HTML file, and so forth (see the Output Options topic in the Stonefield Query help file for a list of the file types supported).

Overloads:


See also:

Class Report

© Stonefield Software Inc., 2024 • Updated: 06/06/16
Comment or report problem with topic