public void DbExecuteReport(string FileName, string OutputFileName) { lib.Entity.DbBase db = lib.Entity.CreateConnection.Create(getSwrDbType(DbCurrent.dbType), DbCurrent.ConnectionString); GenerateReport.Prepare(db, LastTable, ReportFile, LastSqlQuery); GenerateReport.ExecuteFile(FileName, OutputFileName); }
public void DbGenerateReport(string ReportTitle, bool StyleDetail, int ReportStyleIndex, string[] Fields, string[] Counters) { lib.Entity.DbBase db = lib.Entity.CreateConnection.Create(getSwrDbType(DbCurrent.dbType), DbCurrent.ConnectionString); GenerateReport.Prepare(db, LastTable, ReportFile, LastSqlQuery); GenerateReport.Execute(ReportTitle, StyleDetail, ReportStyleIndex, Fields, Counters); }