<body style="overflow: hidden; position: static; margin: 0px; padding: 0px; width: 100%; height: 100%">
<div style="width:100%; height:100%; position:absolute;">
@(Html.EJ().ReportViewer("reportsample")
.ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Remote)
.ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/RDLReport"))
.ReportPath("~/App_Data/134684.rdl"))
</div>
@(Html.EJ().ScriptManager())
</body> |
query |
Response | ||
my problem is for report designer |
Please find the below online sample link for how to use the ReportDesigner in MVC application.
We have prepared the simple sample in MVC5 application and it can be downloaded from below location.
Note: In above sample we have used the External server for open/edit/save the existing report using External server.
We are getting the existing reports, datasources and datasets available in our shared application as shown in below code example. If you want to use any other location then we can modify the path accordingly.
ExternalServer.cs:
| ||
i have data table and i want to load page (report designer page) the whole my data table load on data source like when connection to Sql; |
We don’t have support to load the data table values in Web report designer. But we can able to create the report with data table when using the data extension. We have prepared the simple sample to create the report with web api datasource using data extension in web report designer and it can be downloaded from below location. So could you please use to get the data from data table by the below way.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/MVCWebReportDesigner-1646435401
Please find the below standalone WebAPI sample.
WebAPI Extension: http://www.syncfusion.com/downloads/support/directtrac/general/ze/DataExtension-1837435016.
Please find the document to assist you in creating custom data extension from below location,
Please find the below steps to add the WebAPI DataExtension sample in our WebReportDesigner sample.
Step1: Add the WebAPI Extension project reference to our Web ReportDesigner sample as shown in below snap:
Step2: Add the Configuration section in WebConfig file as shown in below code example.
Web.config
Step3: Add ReportDataExtensions in our index.cshtml file as shown in below code example.
Index.cshtml:
Using the above sample, you can pull the data from WebAPI datasource with query parameter to limit the data based on tenant name. Please find the below documentation to connect WebAPI datasource with query parameter,
Please find the below step for how to get the data using local WebAPI Datasource.
Step 1: Run our above shared sample.
Step 2:Choose the WebAPI in datasource dialog as shown in below snap.
Step 3: Specify the URL (Specify the WebApiServiceController from our above shared sample) with localhost as shown in below snap.
Step 4: Click the connect button as shown in below snap.
Step 4: Click the API icon and provide the method name, parameter name and parameter value as shown in below snap with WebApiServiceController class specified methods
Step 5: Click ok as shown in below snap.
Finally its gets data from our local WebAPIservice as shown in below snap.
|
Create Datasource
configuration dialog will be launched. Windows
or SQL Server
authentication. In SQL Server
type specify the username
and password
of the server. Save
in the Create Datasource
dialog and the new data source will be saved in the external database like below. Create Datasource
configuration dialog will be launched with the datasource information.