skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class ReportDesignerControllerBase

Base API controller for exposing the Telerik Report Designer Service in an ASP.NET Core application.

Inheritance
System.Object
ReportsControllerBase
ReportDesignerControllerBase
Inherited Members
ReportsControllerBase.GetDocumentFormats()
ReportsControllerBase.RegisterClient()
ReportsControllerBase.UnregisterClient(String)
ReportsControllerBase.KeepClientAlive(String)
ReportsControllerBase.GetClientsSessionTimeoutSeconds()
ReportsControllerBase.GetParameters(String, ClientReportSource)
ReportsControllerBase.CreateInstance(String, ClientReportSource)
ReportsControllerBase.DeleteInstance(String, String)
ReportsControllerBase.CreateDocument(String, String, CreateDocumentArgs)
ReportsControllerBase.ProcessDocumentId(String)
ReportsControllerBase.DeleteDocument(String, String, String)
ReportsControllerBase.GetDocumentInfo(String, String, String)
ReportsControllerBase.GetDocument(String, String, String)
ReportsControllerBase.SendDocument(String, String, String, SendDocumentArgs)
ReportsControllerBase.GetResource(String, String)
ReportsControllerBase.GetPage(String, String, String, Int32)
ReportsControllerBase.GetResource(String, String, String, String)
ReportsControllerBase.ExecuteInteractiveAction(String, String, String, String)
ReportsControllerBase.GetPageSettings(String, ClientReportSource)
ReportsControllerBase.GetSearchResults(String, String, String, SearchArgs)
ReportsControllerBase.CreateAIThread(String, String, ClientReportSource)
ReportsControllerBase.GetAIResponse(String, String, String, String, AIQueryArgs)
ReportsControllerBase.GetVersion()
ReportsControllerBase.GetConfiguration()
ReportsControllerBase.CreateMailMessage(SendDocumentArgs, DocumentData)
ReportsControllerBase.SendMailMessage(MailMessage)
ReportsControllerBase.UpdateAIPrompts(ClientReportSource, AIThreadInfo)
ReportsControllerBase.OnCreateDocument(CreateDocumentEventArgs)
ReportsControllerBase.OnGetDocument(GetDocumentEventArgs)
ReportsControllerBase.GetReportInstanceKey(String)
ReportsControllerBase.CreateReportResolver()
ReportsControllerBase.CreateCache()
ReportsControllerBase.CreateStorage()
ReportsControllerBase.GetUserIdentity()
ReportsControllerBase.CreateErrorResponse(HttpStatusCode, String)
ReportsControllerBase.AddTelerikReporting()
ReportsControllerBase.AddTelerikReporting(String, String)
ReportsControllerBase.AddTelerikReporting(String, IStorage, IReportSourceResolver, Func<IClient>)
ReportsControllerBase.AddTelerikReporting(String, IStorage, IReportSourceResolver, Func<IClient>, IReportDocumentResolver, ICompressor, String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)
ReportsControllerBase.ReportServiceConfiguration
Namespace: Telerik.WebReportDesigner.Services.Controllers
Assembly: Telerik.WebReportDesigner.Services.dll

Syntax

[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
public class ReportDesignerControllerBase : ReportsControllerBase

Constructors

ReportDesignerControllerBase()

Declaration
public ReportDesignerControllerBase()

Properties

ReportDesignerServiceConfiguration

Gets or sets the configuration of the web report designer service.

Declaration
public IReportDesignerServiceConfiguration ReportDesignerServiceConfiguration { get; set; }
Property Value
IReportDesignerServiceConfiguration

Remarks

When inheriting the ReportDesignerControllerBase controller basic configuration is needed. Provide an object implementing the IReportDesignerServiceConfiguration in order to configure the service. This should be done in the controllers' constructor using static object to preserve the configuration between requests or using dependency injection.

See Also
IReportDesignerServiceConfiguration
ReportDesignerServiceConfiguration

Methods

AddConnection(ConnectionInfo)

Add the connection to the connection storage.

Declaration
public IHttpActionResult AddConnection(ConnectionInfo connectionInfo)
Parameters
ConnectionInfo connectionInfo

Connection model

Returns
System.Web.Http.IHttpActionResult

An empty result or errors, if any have occurred

CanConnect(ConnectionInfo)

Retrieves the connection availability for a specified connection string.

Declaration
public IHttpActionResult CanConnect(ConnectionInfo connectionInfo)
Parameters
ConnectionInfo connectionInfo

Connection model

Returns
System.Web.Http.IHttpActionResult

Boolean result.

CreateBadRequestResultWithText(String)

Utility function to generate result from text message.

Declaration
protected IHttpActionResult CreateBadRequestResultWithText(string message)
Parameters
System.String message

The message to be used.

Returns
System.Web.Http.IHttpActionResult

CreateFolder(CreateFolderModel)

Creates the given resource folder

Declaration
public virtual IHttpActionResult CreateFolder(CreateFolderModel model)
Parameters
CreateFolderModel model

The CreateFolderModel with the required data

Returns
System.Web.Http.IHttpActionResult

ResourceFolderModel

CreateJsonResponse(Object)

Creates a JSON response from an object.

Declaration
protected IHttpActionResult CreateJsonResponse(object value)
Parameters
System.Object value

The object instance.

Returns
System.Web.Http.IHttpActionResult

A System.Web.Http.IHttpActionResult containing the Json-serialized response.

CreateJsonResponse(String)

Creates a JSON response from a string value.

Declaration
protected IHttpActionResult CreateJsonResponse(string value)
Parameters
System.String value

The string value.

Returns
System.Web.Http.IHttpActionResult

A System.Web.Http.IHttpActionResult containing the Json-serialized response.

CreateNotFoundResultWithText(String)

Creates a JSON response for a NotFound result.

Declaration
protected IHttpActionResult CreateNotFoundResultWithText(string message)
Parameters
System.String message

Returns
System.Web.Http.IHttpActionResult

CreateReportsFolder(CreateFolderModel)

Creates the given folder (Name) in ParentUri

Declaration
public virtual Task<IHttpActionResult> CreateReportsFolder(CreateFolderModel model)
Parameters
CreateFolderModel model

The model containing the create operation data

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

The ResourceFolderModel of the newly created folder

CreateResourceResolver()

Creates a ResourceResolver instance using the storage from the current configuration.

Declaration
protected virtual IResourceResolver CreateResourceResolver()
Returns
IResourceResolver

CreateResponse(Object, HttpStatusCode)

Utility function to generate a response with provided value and status code.

Declaration
protected IHttpActionResult CreateResponse(object value, HttpStatusCode code)
Parameters
System.Object value

System.Net.HttpStatusCode code

Returns
System.Web.Http.IHttpActionResult

CreateSharedDataSourceFolder(CreateFolderModel)

Creates the given folder (Name) in ParentUri

Declaration
public virtual IHttpActionResult CreateSharedDataSourceFolder(CreateFolderModel model)
Parameters
CreateFolderModel model

The model containing the create operation data

Returns
System.Web.Http.IHttpActionResult

The ResourceFolderModel of the newly created folder

CreateSharedDataSourceResolver()

Creates a SharedDataSourceResolver instance.

Declaration
protected virtual ISharedDataSourceResolver CreateSharedDataSourceResolver()
Returns
ISharedDataSourceResolver

CultureContext()

Returns a set with culture-based properties used in serialization.

Declaration
public virtual IHttpActionResult CultureContext()
Returns
System.Web.Http.IHttpActionResult

DeleteFolder(String)

Deletes the given resource folder

Declaration
public virtual IHttpActionResult DeleteFolder(string uri)
Parameters
System.String uri

The unique resource identifier (URI)

Returns
System.Web.Http.IHttpActionResult

DeleteReport(String)

Deletes a report from the root folder.

Declaration
[Obsolete("The virtual method Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.DeleteReport is now obsolete. Please use the Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.DeleteReportAsync method.", true)]
public virtual IHttpActionResult DeleteReport(string reportId)
Parameters
System.String reportId

The report identifier.

Returns
System.Web.Http.IHttpActionResult

DeleteReportAsync(String)

Deletes a report from the provided URI.

Declaration
public virtual Task<IHttpActionResult> DeleteReportAsync(string uri)
Parameters
System.String uri

The report identifier.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

DeleteReportsFolder(String)

Deletes the given folder at uri

Declaration
public virtual Task<IHttpActionResult> DeleteReportsFolder(string uri)
Parameters
System.String uri

The unique report folder identifier (URI)

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

DeleteResource(String)

Deletes an existing resource

Declaration
public virtual IHttpActionResult DeleteResource(string uri)
Parameters
System.String uri

The unique resource identifier (URI)

Returns
System.Web.Http.IHttpActionResult

DeleteSharedDataSource(String)

Deletes the SharedDataSource resource.

Declaration
public virtual Task<IHttpActionResult> DeleteSharedDataSource(string uri)
Parameters
System.String uri

The URI of the resource.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

DeleteSharedDataSourceFolder(String)

Deletes the given folder at uri

Declaration
public virtual IHttpActionResult DeleteSharedDataSourceFolder(string uri)
Parameters
System.String uri

The unique resource identifier (URI)

Returns
System.Web.Http.IHttpActionResult

DownloadReport(String)

Returns the report from the root folder as a file.

Declaration
[Obsolete("The virtual method Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.DownloadReport is now obsolete. Please use the Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.DownloadReportAsync method.", true)]
public virtual IHttpActionResult DownloadReport(string uri)
Parameters
System.String uri

The report identifier for which report to download.

Returns
System.Web.Http.IHttpActionResult

The report as a .trdp or .trdx file.

DownloadReportAsync(String)

Returns the report as a file.

Declaration
public virtual Task<IHttpActionResult> DownloadReportAsync(string uri)
Parameters
System.String uri

The report identifier for which report to download.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

The report as a .trdp or .trdx file.

Evaluate(ReportItemData)

Evaluates an expression against the report expression context.

Declaration
public IHttpActionResult Evaluate(ReportItemData data)
Parameters
ReportItemData data

Returns
System.Web.Http.IHttpActionResult

A string, representing the evaluating expression.

ExpressionBuilderParametersHierarchy(Object)

Returns a collection of all parameters.

Declaration
public IHttpActionResult ExpressionBuilderParametersHierarchy(object rawParameters)
Parameters
System.Object rawParameters

Returns
System.Web.Http.IHttpActionResult

A System.Web.Http.IHttpActionResult containing the parameters collection.

File(Byte[], String, String)

Returns a File action result with the provided contents.

Declaration
protected IHttpActionResult File(byte[] content, string contentType, string fileName)
Parameters
System.Byte[] content

System.String contentType

System.String fileName

Returns
System.Web.Http.IHttpActionResult

FolderExists(String)

Determines if a folder exists by using its URI.

Declaration
public virtual IHttpActionResult FolderExists(string uri)
Parameters
System.String uri

The unique resource identifier (URI) of the folder.

Returns
System.Web.Http.IHttpActionResult

FolderHasContentsResponseModel

FolderHasContents(String)

Determines if a folder has contents

Declaration
public virtual IHttpActionResult FolderHasContents(string uri)
Parameters
System.String uri

The unique resource identifier (URI)

Returns
System.Web.Http.IHttpActionResult

FolderHasContentsResponseModel

FolderNameExists(String)

Determines if a folder exists by using its path with Name identifiers.

Declaration
public virtual IHttpActionResult FolderNameExists(string name)
Parameters
System.String name

The full path to the folders with Name identifiers.

Returns
System.Web.Http.IHttpActionResult

FolderHasContentsResponseModel

GenerateSqlStatement(GenerateSqlInfo)

Generates SQL statement for the specified query designer model and data connection.

Declaration
public IHttpActionResult GenerateSqlStatement(GenerateSqlInfo generateInfo)
Parameters
GenerateSqlInfo generateInfo

Generate SQL info model.

Returns
System.Web.Http.IHttpActionResult

Generated SQL statement or errors, if any have occurred

Get(String)

Get the content of a resource file.

Declaration
[Obsolete("Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.Get(string) is obsolete. Please use Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.GetRawResource(GetRawResourceModel)", false)]
public virtual IHttpActionResult Get(string resourceName)
Parameters
System.String resourceName

The resource file name.

Returns
System.Web.Http.IHttpActionResult

GetAllByExtension(String)

List all available resource files that match the specified search extension in the resource storage.

Declaration
public virtual IHttpActionResult GetAllByExtension(string extension)
Parameters
System.String extension

The resources' extension.

Returns
System.Web.Http.IHttpActionResult

An array of ResourceFileModel

GetComponentBindingPaths(ReportItemDefinitionData)

Gets the component's binding paths available values.

Declaration
public IHttpActionResult GetComponentBindingPaths(ReportItemDefinitionData model)
Parameters
ReportItemDefinitionData model

Returns
System.Web.Http.IHttpActionResult

GetConnectionsPermissions()

Gets the connections permissions.

Declaration
public IHttpActionResult GetConnectionsPermissions()
Returns
System.Web.Http.IHttpActionResult

ConnectionsPermissions.

GetDataConnectionProviders()

Gets a collection of all DB providers.

Declaration
public IHttpActionResult GetDataConnectionProviders()
Returns
System.Web.Http.IHttpActionResult

DbProviderInfo array.

GetDataConnections()

Gets a collection of all data connections.

Declaration
public IHttpActionResult GetDataConnections()
Returns
System.Web.Http.IHttpActionResult

ConnectionInfo array.

GetDataModel(ObjectDataSourceInfo)

Returns the data fields schema for the specified object data source.

Declaration
public virtual IHttpActionResult GetDataModel(ObjectDataSourceInfo input)
Parameters
ObjectDataSourceInfo input

Returns
System.Web.Http.IHttpActionResult

GetDbSchema(SchemaRestrictionsInfo)

Retrieves the database schema for the specified data connection.

Declaration
public IHttpActionResult GetDbSchema(SchemaRestrictionsInfo input)
Parameters
SchemaRestrictionsInfo input

Connection model.

Returns
System.Web.Http.IHttpActionResult

The database schema for the specified data connection or errors, if any have occurred

GetDefaultComponent(String)

Gets the component's default property store.

Declaration
public virtual IHttpActionResult GetDefaultComponent(string typeName)
Parameters
System.String typeName

The name of the component type.

Returns
System.Web.Http.IHttpActionResult

GetDeniedPermissions()

Gets all denied permissions.

Declaration
public virtual IHttpActionResult GetDeniedPermissions()
Returns
System.Web.Http.IHttpActionResult

GetDesignerResource(String, String)

Gets an embedded report viewer resource.

Declaration
public virtual IHttpActionResult GetDesignerResource(string folder, string resourceName)
Parameters
System.String folder

The folder in which the resource is.

System.String resourceName

The name of the resource.

Returns
System.Web.Http.IHttpActionResult

A System.Web.Http.IHttpActionResult containing the requested resource.

GetExpressionBuilderHierarchy()

Returns a collection of all static expression builder nodes.

Declaration
public IHttpActionResult GetExpressionBuilderHierarchy()
Returns
System.Web.Http.IHttpActionResult

A System.Web.Http.IHttpActionResult containing the hierarchy.

GetFolderContents(String)

A list of all available resource files and folders including their details

Declaration
public virtual IHttpActionResult GetFolderContents(string uri)
Parameters
System.String uri

The unique resource identifier (URI)

Returns
System.Web.Http.IHttpActionResult

FolderContentsResponseModel

GetFolderModel(String)

Gets the folder model on a given URI.

Declaration
public virtual IHttpActionResult GetFolderModel(string uri)
Parameters
System.String uri

The URI of the folder.

Returns
System.Web.Http.IHttpActionResult

GetFolderModelByName(String)

Gets the folder model on a given path using Name identifiers

Declaration
public virtual IHttpActionResult GetFolderModelByName(string name)
Parameters
System.String name

The full path to the folders with Name identifiers.

Returns
System.Web.Http.IHttpActionResult

GetMembers(TypeInfoWithFilter)

Returns a list of all data members for the specified type.

Declaration
public virtual IHttpActionResult GetMembers(TypeInfoWithFilter input)
Parameters
TypeInfoWithFilter input

Returns
System.Web.Http.IHttpActionResult

GetProceduresSchema(ConnectionInfo)

Retrieves the procedures for the specified data connection.

Declaration
public IHttpActionResult GetProceduresSchema(ConnectionInfo input)
Parameters
ConnectionInfo input

Connection model

Returns
System.Web.Http.IHttpActionResult

The procedures for the specified data connection or errors, if any have occurred

GetRawResource(String)

Get the content of a resource file.

Declaration
public virtual IHttpActionResult GetRawResource(string uri)
Parameters
System.String uri

The unique resource identifier (URI)

Returns
System.Web.Http.IHttpActionResult

GetRawResourceByName(String)

Get the content of a resource file using path with Name identifiers.

Declaration
public virtual IHttpActionResult GetRawResourceByName(string name)
Parameters
System.String name

The full path to the resource with Name identifiers.

Returns
System.Web.Http.IHttpActionResult

GetRawSharedDataSource(String)

Gets the ShareDataSource resource raw data.

Declaration
public virtual Task<IHttpActionResult> GetRawSharedDataSource(string uri)
Parameters
System.String uri

The URI of the resource.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

GetReport(String)

Gets the report definition from the root folder.

Declaration
[Obsolete("The virtual method Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.GetReport is now obsolete. Please use the Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.GetReportAsync method.", true)]
public virtual IHttpActionResult GetReport(string reportId)
Parameters
System.String reportId

The report identifier.

Returns
System.Web.Http.IHttpActionResult

GetReportAsync(String)

Gets the report definition.

Declaration
public virtual Task<IHttpActionResult> GetReportAsync(string uri)
Parameters
System.String uri

The report identifier.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

GetReportBytes(String, IReportDocument)

For internal use only

Declaration
protected byte[] GetReportBytes(string definitionId, IReportDocument report)
Parameters
System.String definitionId

report definition identifier

IReportDocument report

report instance

Returns
System.Byte[]

The bytes of the serialized report.

GetReportDocument(String, Byte[])

Gets a the report document object by its id and bytes.

Declaration
protected IReportDocument GetReportDocument(string definitionId, byte[] definition)
Parameters
System.String definitionId

The report definition identifier.

System.Byte[] definition

The report definition in binary format.

Returns
IReportDocument

IReportDocument.

GetReportsFolderModel(String)

Gets the folder model on a given URI.

Declaration
public virtual Task<IHttpActionResult> GetReportsFolderModel(string uri)
Parameters
System.String uri

The URI of the folder.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

The ResourceFolderModel or null if not found.

GetReportsInFolder(String)

Lists the first-level folders and report definitions at the provided folder URI.

Declaration
public virtual Task<IHttpActionResult> GetReportsInFolder(string uri = null)
Parameters
System.String uri

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

GetResourceCore(String, String, Type)

Retrieve resources.

Declaration
protected IHttpActionResult GetResourceCore(string folder, string resourceName, Type type = null)
Parameters
System.String folder

The folder in which to search for serialized resource.

System.String resourceName

The name of the resource.

System.Type type

The type of the resource (optional).

Returns
System.Web.Http.IHttpActionResult

A System.Web.Http.IHttpActionResult containing the response.

GetResourceFile(String)

Get the content of a resource file by its URI.

Declaration
public virtual IHttpActionResult GetResourceFile(string uri)
Parameters
System.String uri

The URI to the resource.

Returns
System.Web.Http.IHttpActionResult

GetResourceModel(String)

Gets the resource model for the given resource.

Declaration
public virtual IHttpActionResult GetResourceModel(string uri)
Parameters
System.String uri

The unique resource identifier (URI)

Returns
System.Web.Http.IHttpActionResult

ResourceFileModel

GetResourceModelByName(String)

Gets the resource model for the given resource.

Declaration
public virtual IHttpActionResult GetResourceModelByName(string name)
Parameters
System.String name

The unique resource identifier (URI)

Returns
System.Web.Http.IHttpActionResult

ResourceFileModel

GetSharedDataSource(String)

Gets the JSON-serialized representation of the SharedDataSource resource by its URI.

Declaration
public virtual Task<IHttpActionResult> GetSharedDataSource(string uri)
Parameters
System.String uri

The URI of the SharedDataSource.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

JSON string, representing the underlying DataSource.

GetSharedDataSourceFolderContents(String)

A list of all available SharedDataSource files including their details

Declaration
public virtual IHttpActionResult GetSharedDataSourceFolderContents(string uri)
Parameters
System.String uri

Returns
System.Web.Http.IHttpActionResult

GetSharedDataSourceModel(String)

Gets the SharedDataSource model by its URI.

Declaration
public virtual Task<IHttpActionResult> GetSharedDataSourceModel(string uri)
Parameters
System.String uri

The URI of the SharedDataSource.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

GetSqlDataModel(DataSourceInfo)

Retrieves the fields data model for the specified data connection.

Declaration
public IHttpActionResult GetSqlDataModel(DataSourceInfo dsi)
Parameters
DataSourceInfo dsi

Returns
System.Web.Http.IHttpActionResult

The fields data model for the specified data connection or errors, if any have occurred

GetSqlParameters(QueryInfoWithParameters)

Retrieves a collection of all SQL parameters.

Declaration
public IHttpActionResult GetSqlParameters(QueryInfoWithParameters queryInfo)
Parameters
QueryInfoWithParameters queryInfo

Returns
System.Web.Http.IHttpActionResult

A collection of all SQL parameters or errors, if any have occurred

GetSqlPreviewData(PreviewDataInfoWithParameters)

Retrieves a preview of the sql data

Declaration
public IHttpActionResult GetSqlPreviewData(PreviewDataInfoWithParameters commandInfo)
Parameters
PreviewDataInfoWithParameters commandInfo

Returns
System.Web.Http.IHttpActionResult

A preview of the sql data or errors, if any have occurred

GetTypeMeasures(TypeInfo)

Returns the data fields schema for the specified type. Used for nested measures.

Declaration
public virtual IHttpActionResult GetTypeMeasures(TypeInfo input)
Parameters
TypeInfo input

Returns
System.Web.Http.IHttpActionResult

GetTypes()

Returns a list of all available types.

Declaration
public virtual IHttpActionResult GetTypes()
Returns
System.Web.Http.IHttpActionResult

GetTypeSchema(String)

Gets the type schema for the requested type.

Declaration
public virtual IHttpActionResult GetTypeSchema(string typeName)
Parameters
System.String typeName

The name of the type.

Returns
System.Web.Http.IHttpActionResult

GetTypeSchemas(String[])

Gets a collection of type schemas for the requested types.

Declaration
public virtual IHttpActionResult GetTypeSchemas(string[] typeNames)
Parameters
System.String[] typeNames

A JSON array containing the type names.

Returns
System.Web.Http.IHttpActionResult

GetWizardStyleSheets(String)

Returns a list of design-time stylesheets.

Declaration
public virtual IHttpActionResult GetWizardStyleSheets(string typeName)
Parameters
System.String typeName

The design-time item type name.

Returns
System.Web.Http.IHttpActionResult

A System.Web.Http.IHttpActionResult containing the wizard style sheets.

ListFonts()

Lists all available fonts.

Declaration
public virtual IHttpActionResult ListFonts()
Returns
System.Web.Http.IHttpActionResult

MoveFolder(MoveFolderModel)

Moves the given resource folder

Declaration
public virtual IHttpActionResult MoveFolder(MoveFolderModel model)
Parameters
MoveFolderModel model

The MoveFolderModel with the required data

Returns
System.Web.Http.IHttpActionResult

ResourceFolderModel

MoveResource(MoveResourceModel)

Moves an existing resource

Declaration
public virtual IHttpActionResult MoveResource(MoveResourceModel model)
Parameters
MoveResourceModel model

The MoveResourceModel with the required data

Returns
System.Web.Http.IHttpActionResult

OverwriteResource(OverwriteResourceModel)

Overwrites an existing resource

Declaration
public virtual Task<IHttpActionResult> OverwriteResource(OverwriteResourceModel model)
Parameters
OverwriteResourceModel model

The OverwriteResourceModel with the required datan

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

ResourceFileModel

PaperSizes()

Lists all available paper kinds with their size.

Declaration
public virtual IHttpActionResult PaperSizes()
Returns
System.Web.Http.IHttpActionResult

Preview(DataSourceInfo)

Returns a preview of the object data source data.

Declaration
public virtual IHttpActionResult Preview(DataSourceInfo dataSourceInfo)
Parameters
DataSourceInfo dataSourceInfo

The object data source model.

Returns
System.Web.Http.IHttpActionResult

PreviewCsv(DataSourceInfo)

Returns a preview of the contents of a csv file.

Declaration
public virtual IHttpActionResult PreviewCsv(DataSourceInfo dataSourceInfo)
Parameters
DataSourceInfo dataSourceInfo

The CSV data source model.

Returns
System.Web.Http.IHttpActionResult

PreviewJson(DataSourceInfo)

Returns a preview of the contents of a json file.

Declaration
public virtual IHttpActionResult PreviewJson(DataSourceInfo dataSourceInfo)
Parameters
DataSourceInfo dataSourceInfo

The JSON data source model.

Returns
System.Web.Http.IHttpActionResult

PreviewWebServiceData(DataSourceInfo)

Returns a preview of the web service data source.

Declaration
public virtual IHttpActionResult PreviewWebServiceData(DataSourceInfo dataSourceInfo)
Parameters
DataSourceInfo dataSourceInfo

The Web service data source model.

Returns
System.Web.Http.IHttpActionResult

RenameFolder(RenameFolderModel)

Renames the given resource folder

Declaration
public virtual IHttpActionResult RenameFolder(RenameFolderModel model)
Parameters
RenameFolderModel model

The RenameFolderModel with the required data

Returns
System.Web.Http.IHttpActionResult

ResourceFolderModel

RenameReportAsync(RenameResourceModel)

Renames a report from OldUri to Name

Declaration
public virtual Task<IHttpActionResult> RenameReportAsync(RenameResourceModel report)
Parameters
RenameResourceModel report

The model containing the rename operation data

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

The ResourceFileModel of the renamed report

RenameReportsFolder(RenameFolderModel)

Renames the given folder at OldUri to Name, including all of its content

Declaration
public virtual Task<IHttpActionResult> RenameReportsFolder(RenameFolderModel model)
Parameters
RenameFolderModel model

The model containing the rename operation data

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

The ResourceFolderModel of the newly renamed folder

RenameResource(RenameResourceModel)

Renames an existing resource

Declaration
public virtual IHttpActionResult RenameResource(RenameResourceModel model)
Parameters
RenameResourceModel model

The RenameResourceModel with the required data

Returns
System.Web.Http.IHttpActionResult

ResourceFileModel

RenameSharedDataSource(RenameResourceModel)

Renames the SharedDataSource resource.

Declaration
public virtual Task<IHttpActionResult> RenameSharedDataSource(RenameResourceModel model)
Parameters
RenameResourceModel model

The model containing renaming operation data.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

RenameSharedDataSourceFolder(RenameFolderModel)

Renames the given folder at OldUri to Name, including all of its contents (similar to the MoveFolder(MoveFolderModel) method)

Declaration
public virtual IHttpActionResult RenameSharedDataSourceFolder(RenameFolderModel model)
Parameters
RenameFolderModel model

The model containing the rename operation data

Returns
System.Web.Http.IHttpActionResult

The ResourceFolderModel of the newly created folder

RenderBarcode(ReportItemData)

Renders a barcode item to PNG and returns the rendered image.

Declaration
public virtual IHttpActionResult RenderBarcode(ReportItemData model)
Parameters
ReportItemData model

Returns
System.Web.Http.IHttpActionResult

PNG bytes.

RenderCheckBox(ReportItemData)

Renders a CheckBox item and returns the rendered HTML.

Declaration
public virtual IHttpActionResult RenderCheckBox(ReportItemData model)
Parameters
ReportItemData model

Returns
System.Web.Http.IHttpActionResult

PNG bytes

RenderCrossSectionItem(ReportItemData)

Renders a RenderCrossSectionItem item to PNG and returns the rendered image.

Declaration
public virtual IHttpActionResult RenderCrossSectionItem(ReportItemData model)
Parameters
ReportItemData model

Returns
System.Web.Http.IHttpActionResult

PNG bytes

RenderGraph(ReportItemData)

Renders a graph item to PNG and returns the rendered image.

Declaration
public virtual IHttpActionResult RenderGraph(ReportItemData model)
Parameters
ReportItemData model

Returns
System.Web.Http.IHttpActionResult

PNG bytes.

RenderHtmlTextBox(ReportItemData)

Renders a HtmlTextBox item to PNG and returns the rendered image.

Declaration
public virtual IHttpActionResult RenderHtmlTextBox(ReportItemData model)
Parameters
ReportItemData model

Returns
System.Web.Http.IHttpActionResult

PNG bytes.

RenderLinearGauge(ReportItemData)

Renders a Linear Gauge item and returns the rendered image.

Declaration
public virtual IHttpActionResult RenderLinearGauge(ReportItemData model)
Parameters
ReportItemData model

Returns
System.Web.Http.IHttpActionResult

PNG bytes

RenderMap(ReportItemData)

Renders a map item to PNG and returns the rendered image.

Declaration
public virtual IHttpActionResult RenderMap(ReportItemData model)
Parameters
ReportItemData model

Returns
System.Web.Http.IHttpActionResult

PNG bytes.

RenderPictureBox(ReportItemData)

Renders a PictureBox item to PNG and returns the rendered image.

Declaration
public virtual IHttpActionResult RenderPictureBox(ReportItemData model)
Parameters
ReportItemData model

Returns
System.Web.Http.IHttpActionResult

PNG bytes

RenderRadialGauge(ReportItemData)

Renders a Radial Gauge item and returns the rendered image.

Declaration
public virtual IHttpActionResult RenderRadialGauge(ReportItemData model)
Parameters
ReportItemData model

Returns
System.Web.Http.IHttpActionResult

PNG bytes

RenderShape(ReportItemData)

Renders a Shape item to PNG and returns the rendered image.

Declaration
public virtual IHttpActionResult RenderShape(ReportItemData model)
Parameters
ReportItemData model

Returns
System.Web.Http.IHttpActionResult

PNG bytes

ReportExistsAsync(String)

Determines if a report definition exists by its URI.

Declaration
public virtual Task<IHttpActionResult> ReportExistsAsync(string uri)
Parameters
System.String uri

The report URI.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

ResourceNameExists(String)

Determines if a resource with the provided name exists.

Declaration
public virtual IHttpActionResult ResourceNameExists(string name)
Parameters
System.String name

The full path to the resource using Name identifiers.

Returns
System.Web.Http.IHttpActionResult

true, if the resource exists, else false.

ResourceUriExists(String)

Determines if a resource with the provided URI exists.

Declaration
public virtual IHttpActionResult ResourceUriExists(string uri)
Parameters
System.String uri

The URI of the resource.

Returns
System.Web.Http.IHttpActionResult

true, if the resource exists, else false.

Save(String)

Creates a new resource.

Declaration
[Obsolete("Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.Save(string) is obsolete. Please use Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.Save(SaveResourceModel)", false)]
public virtual Task<IHttpActionResult> Save(string resourceName)
Parameters
System.String resourceName

The resource file name.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

SaveReport(String, Object)

Creates a new report or updates an existing report.

Declaration
[Obsolete("The virtual method Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.SaveReport is now obsolete. Please use the Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.SaveReportAsync method.", true)]
public virtual IHttpActionResult SaveReport(string reportId, object definition)
Parameters
System.String reportId

The report identifier.

System.Object definition

The report definition in JSON format.

Returns
System.Web.Http.IHttpActionResult

SaveReportByUriAsync(String, Object)

Creates a new report or updates an existing report.

Declaration
public virtual Task<IHttpActionResult> SaveReportByUriAsync(string uri, object definition)
Parameters
System.String uri

The report identifier.

System.Object definition

The report definition in JSON format.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

SaveResource(SaveResourceModel)

Creates a new resource.

Declaration
public virtual Task<IHttpActionResult> SaveResource(SaveResourceModel model)
Parameters
SaveResourceModel model

The SaveResourceModel with the required data

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

ResourceFileModel

SaveSharedDataSourceModel(SaveResourceModel)

Creates a new resource using the JSON data from Request body.

Declaration
public virtual Task<IHttpActionResult> SaveSharedDataSourceModel(SaveResourceModel model)
Parameters
SaveResourceModel model

The resource file name and parent folder URI.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

SearchResources(SearchResourcesModel)

Searches for resources and resource folders

Declaration
public virtual IHttpActionResult SearchResources(SearchResourcesModel model)
Parameters
SearchResourcesModel model

The SearchResourcesModel with the required data

Returns
System.Web.Http.IHttpActionResult

SearchResourceResponseModel

SharedDataSourceExists(String)

Determines if a SharedDataSource resource with the provided URI exists.

Declaration
public virtual Task<IHttpActionResult> SharedDataSourceExists(string uri)
Parameters
System.String uri

The unique resource identifier (URI) of the SharedDataSource resource.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

true, if the resource exists, else false.

SharedDataSourceFolderExists(String)

Determines if the given folder uri exists.

Declaration
public virtual IHttpActionResult SharedDataSourceFolderExists(string uri)
Parameters
System.String uri

The unique resource identifier (URI) of the folder.

Returns
System.Web.Http.IHttpActionResult

true, if the folder exists, else false

SharedDataSourceFolderNameExists(String)

Determines if the given folder name exists.

Declaration
public virtual IHttpActionResult SharedDataSourceFolderNameExists(string name)
Parameters
System.String name

The path to the folder using Name identifiers.

Returns
System.Web.Http.IHttpActionResult

true, if the folder exists, else false

UploadRawSharedDataSource(SaveResourceModel)

Saves the ShareDataSource resource using the raw string data from Request body.

Declaration
public virtual Task<IHttpActionResult> UploadRawSharedDataSource(SaveResourceModel model)
Parameters
SaveResourceModel model

The model containing save operation data.

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

UploadReportAsync(String)

Receive a report in file format and saves it to storage

Declaration
public virtual Task<IHttpActionResult> UploadReportAsync(string uri)
Parameters
System.String uri

Returns
System.Threading.Tasks.Task<System.Web.Http.IHttpActionResult>

Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.