Runs the specified report, outputting it to the specified file.
public bool RunReportToFile(string ReportName, string OutputFileName);
Return Value
True if the report ran successfully and the file was created or False if an error occurred or no records match the filter condition (in that case, check the ErrorMessage property of the ReportEngine object for the reason for failure).
Parameters
ReportName
The name of the report to run.
OutputFileName
The name and path of the file to output the report to. If the file already exists, it's overwritten.
Overloads:
public bool RunReportToFile(string ReportName, string OutputFileName, string FileType, string FileSubType, string Values);
public bool RunReportToFile(string ReportName, string OutputFileName, string Values);
public bool RunReportToFile(Report report, string OutputFileName, string FileType, string FileSubType, string Values);
public bool RunReportToFile(Report report, string OutputFileName, string Values);
public bool RunReportToFile(Report report, string OutputFileName);
See also:
Class ReportEngine© Stonefield Software Inc., 2023 • Updated: 06/06/16
Comment or report problem with topic