<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="ReportingExtensions" type="Syncfusion.Reporting.Extensions.Configuration.Extensions, Syncfusion.Reporting.Web" allowLocation="true" allowDefinition="Everywhere" />
</configSections>
<ReportingExtensions>
<DataExtension>
<Extension Name="PostgreSQL" Assembly="Syncfusion.Reporting.DataExtensions.PostgreSQL" Type="Syncfusion.Reporting.DataExtensions.PostgreSQL.PostgreSQLDataExtension"/>
</DataExtension>
</ReportingExtensions>
</configuration> |
<sf-report-designer id="reportdesigner1" create="controlInitialized" service-url="../Home" report-data-extensions="@ViewBag.ReportDataExtensions">
</sf-report-designer>
<sf-script-manager></sf-script-manager> |
public ActionResult Index()
{
ViewBag.ReportDataExtensions = new List<ReportDataExtensionsModule>();
var ReportDataExtension = new ReportDataExtensionsModule();
ReportDataExtension.Name = "PostgreSQL";
ReportDataExtension.ClassName = "PSQLDataSource";
ReportDataExtension.ImageClass = "e-reportdesigner-datasource-psql";
ReportDataExtension.DisplayName = "PostgreSQL";
ViewBag.ReportDataExtensions.Add(ReportDataExtension);
return View(); } |