Runs the specified report, outputting it to the specified file type, and returns the file as a string.

public string RunReport(string ReportName,
	string FileType);

Return Value

A string containing the output of the report or an empty string if the report run failed because of an error or no records matching the filter condition (in that case, check the ErrorMessage property of the ReportEngine object for the reason for failure).


The name of the report to run.

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).


See also:

Class ReportEngine