using System; using Gtk; using System.Configuration; using FogSoft.MonoReport.Processing ; using System.Data.SqlClient; using System.Data; namespace rptt { class MainClass { public static void Main (string[] args) { /*Application.Init (); MainWindow win = new MainWindow (); win.Show (); Application.Run (); */ TemplateProcessor.Process ("C:\\b\\news.xls", "F\\news.xls", Getdata()); } private static string GetTemplatePath(string templateFileName) { const string baseTemplatePath=@"C:\b\"; return baseTemplatePath + templateFileName ; } private static string GetResultPath (string reportFileName) { const string baseReportsPath=@"C:\b\"; return baseReportsPath + reportFileName ; } private static DataSet Getdata() { /* SqlConnection con = new SqlConnection(@"data source=digiwebtech.com;initial catalog=digiwebtech_com_adagency;persist security info=True;user id=adagency;password=india123;"); SqlCommand cmd=new SqlCommand ("select category from releaseorder",con); SqlDataAdapter da=new SqlDataAdapter (); da.SelectCommand =cmd; da.Fill (dt);*/ DataSet dt=new DataSet (); DataTable da=new DataTable (); da.Columns.Add ("category"); da.Rows.Add ("hellocate"); dt.Tables .Add(da); return dt; } } }
TemplateProcessor.Process ("C:\\b\\news.xls", "F\\news.xls", Getdata());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)