xtrareports-devexpress-dot-xtrareports-dot-web-dot-reportdesigner-dot-defaultreportdesignercontainer-29fa1b04.md
Enables editing custom SQL strings on the Create a Query or Select a Stored Procedure wizard page.
Namespace : DevExpress.XtraReports.Web.ReportDesigner
Assembly : DevExpress.XtraReports.v25.2.Web.dll
NuGet Package : DevExpress.Web.Reporting.Common
public static void EnableCustomSql()
Public Shared Sub EnableCustomSql
The following code snippets (auto-collected from DevExpress Examples) contain references to the EnableCustomSql() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
reporting-web-forms-report-designer-add-data-sources/CS/WebApplication1/Global.asax.cs#L17
DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new ReportStorageWebExtension1(Server.MapPath("/Reports")));
DevExpress.XtraReports.Web.ReportDesigner.DefaultReportDesignerContainer.EnableCustomSql();
}
reporting-web-forms-designer-storage/CS/SimpleWebReportCatalog/Global.asax.cs#L12
protected void Application_Start(object sender, EventArgs e) {
DevExpress.XtraReports.Web.ReportDesigner.DefaultReportDesignerContainer.EnableCustomSql();
reporting-web-forms-report-designer-add-data-sources/VB/WebApplication1/Global.asax.vb#L15
DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(New ReportStorageWebExtension1(Server.MapPath("/Reports")))
DevExpress.XtraReports.Web.ReportDesigner.DefaultReportDesignerContainer.EnableCustomSql()
End Sub
reporting-web-forms-designer-storage/VB/SimpleWebReportCatalog/Global.asax.vb#L13
Protected Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
DevExpress.XtraReports.Web.ReportDesigner.DefaultReportDesignerContainer.EnableCustomSql()
See Also
General Security Considerations
Custom SQL Query Validation (Web)
Custom SQL Query in the Report Designer for Web
DefaultReportDesignerContainer Class