Exago .NET API Documentation
GetReportId Method
Example 
WebReports.Api.Reports Namespace > ReportObjectFactory Class : GetReportId Method
The path and name of the report to retrieve the content ID for.

Optional user-defined data string to pass along with the report.

This feature is deprecated.
Get the content ID of a report in the repository by name/path. This can be passed to the LoadFromRepository Method.
Syntax
public System.Guid GetReportId( 
   System.string name,
   System.string udfData
)

Parameters

name
The path and name of the report to retrieve the content ID for.
udfData

Optional user-defined data string to pass along with the report.

This feature is deprecated.

Return Value

A Guid object representing the content ID of the requested report. If the report does not exist, returns Guid.Empty.
Example
Directly load a report and apply changes if needed
if (reportName != null)
{
	Report ro = (Report)api.ReportObjectFactory.LoadFromRepository(api.ReportObjectFactory.GetReportId(reportName));
	ro.ExportType = wrExportType.Html;      	// Select Export Type for report execution (PDF is default for non-Dashboard reports
	api.ReportObjectFactory.SaveToApi(ro);  // Save Changes back to the api object
}
See Also

Reference

ReportObjectFactory Class
ReportObjectFactory Members