Skip to content

Micmaz/Reporting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2779954 · May 26, 2023

History

26 Commits
May 25, 2023
Aug 15, 2022
May 25, 2023
May 26, 2023
May 25, 2023
Dec 12, 2017
Dec 12, 2017
Feb 13, 2019
May 25, 2023

Repository files navigation

Reporting

Drop in reporting tool with sql query builder

Typical use:

<asp:Button ID="btnToggleEditing" runat="server" OnClick="btnToggleEditing_Click" Text="Toggle report editing" />
<br />
<%@ Register assembly="Reporting" namespace="Reporting" tagprefix="DTI" %>
<DTI:ReportSelector ID="ReportSelector1" runat="server"></DTI:ReportSelector>

Code behind:

protected void btnToggleEditing_Click(object sender, EventArgs e)
{
	Reporting.Report.isGlobalAdmin = !Reporting.Report.isGlobalAdmin;
	Response.Redirect(Request.Url.AbsoluteUri);
}

Web.config:

<add name="ConnectionString" connectionString="Data Source=SQLServerName;Initial Catalog=WhereTheDataIs;Integrated Security=True" providerName="System.Data.SqlClient"/>

Note: THIS WILL ADD TABLES TO THE DATABASE. If you want to use SQLite to store the reports set the report connection like: In Global.asax.cs

protected void Session_Start(object sender, EventArgs e)
{
	Reporting.Report.ReportDataConnectionShared = BaseClasses.DataBase.createHelperFromConnectionName("CONNECTION NAME").defaultConnection;
}

About

Drop in reporting tool with sql query builder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published