Class ProjectReportsOperations
Use this class to manage the project reports operations
Inherited Members
Namespace: Sdl.ProjectAutomation .FileBased .Reports.Operations
Assembly: Sdl.ProjectAutomation.FileBased.dll
Syntax
public class ProjectReportsOperations
Constructors
ProjectReportsOperations(FileBasedProject)
Declaration
public ProjectReportsOperations(FileBasedProject fileBasedProject)
Parameters
Type | Name | Description |
---|---|---|
File |
fileBasedProject |
Methods
AddReport(string, string, string, string, string)
Add a report based on Studio report templates
Declaration
public Report AddReport(string templateId, string name, string description, string languageAbbreviation, string data)
Parameters
Type | Name | Description |
---|---|---|
string | templateId | Report template Id |
string | name | Report name |
string | description | Report description |
string | languageAbbreviation | ISO abbreviation for the report language |
string | data | Report html data |
Returns
Type | Description |
---|---|
Report | The newly generated report |
GetProjectReports()
Returns the project reports list
Declaration
public List<Report> GetProjectReports()
Returns
GetReportDefinition(string)
Returns the report definition
Declaration
public ReportDefinition GetReportDefinition(string taskTemplateId)
Parameters
Type | Name | Description |
---|---|---|
string | taskTemplateId | Task template Id |
Returns
Type | Description |
---|---|
Report |
The report definition |
GetReportRendering(Guid, string)
Returns the report rendering
Declaration
public byte[] GetReportRendering(Guid reportId, string fileExtension)
Parameters
Returns
Type | Description |
---|---|
byte[] | The report content in the specified format |
GetReportRendering(Guid, string, string)
Returns the report rendering based on custom report template
Declaration
public byte[] GetReportRendering(Guid reportId, string customTemplate, string fileExtension)
Parameters
Type | Name | Description |
---|---|---|
Guid | reportId | Report Id |
string | customTemplate | Custom report template |
string | fileExtension | Report file extension |
Returns
Type | Description |
---|---|
byte[] | The report content in the specified format |
GetReportRenderingSupportedFileFormats(Guid)
Returns the list of supported file extensions by the report rendering engine
Declaration
public List<string> GetReportRenderingSupportedFileFormats(Guid reportId)
Parameters
Type | Name | Description |
---|---|---|
Guid | reportId | Report Id |
Returns
RemoveReports(List<Guid>)
Remove a set of reports
Declaration
public void RemoveReports(List<Guid> reportIds)
Parameters
UpdateReport(Guid, string, string, string)
Update a report
Declaration
public void UpdateReport(Guid reportId, string name, string description, string data)