Search Results for

    Show / Hide Table of Contents

    Class ProjectReportsOperations

    Use this class to manage the project reports operations

    Inheritance
    object
    ProjectReportsOperations
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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
    FileBasedProject 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
    Type Description
    List<Report>

    List of reports

    GetReportDefinition(string)

    Returns the report definition

    Declaration
    public ReportDefinition GetReportDefinition(string taskTemplateId)
    Parameters
    Type Name Description
    string taskTemplateId

    Task template Id

    Returns
    Type Description
    ReportDefinition

    The report definition

    GetReportRendering(Guid, string)

    Returns the report rendering

    Declaration
    public byte[] GetReportRendering(Guid reportId, string fileExtension)
    Parameters
    Type Name Description
    Guid reportId

    Report Id

    string fileExtension

    Report file extension

    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
    Type Description
    List<string>

    The list with supported file extensions

    RemoveReports(List<Guid>)

    Remove a set of reports

    Declaration
    public void RemoveReports(List<Guid> reportIds)
    Parameters
    Type Name Description
    List<Guid> reportIds

    List of report Ids

    UpdateReport(Guid, string, string, string)

    Update a report

    Declaration
    public void UpdateReport(Guid reportId, string name, string description, string data)
    Parameters
    Type Name Description
    Guid reportId

    Report Id

    string name

    Report name

    string description

    Report description

    string data

    Report html data

    In this article
    • Constructors
      • ProjectReportsOperations(FileBasedProject)
    • Methods
      • AddReport(string, string, string, string, string)
      • GetProjectReports()
      • GetReportDefinition(string)
      • GetReportRendering(Guid, string)
      • GetReportRendering(Guid, string, string)
      • GetReportRenderingSupportedFileFormats(Guid)
      • RemoveReports(List<Guid>)
      • UpdateReport(Guid, string, string, string)
    Back to top Generated by DocFX