Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
AnswerRe: RE-GET and SET PROPERTY Pin
Eddy Vluggen18-Sep-15 21:03
professionalEddy Vluggen18-Sep-15 21:03 
AnswerRe: RE-GET and SET PROPERTY Pin
OriginalGriff18-Sep-15 21:34
mveOriginalGriff18-Sep-15 21:34 
AnswerRe: RE-GET and SET PROPERTY Pin
Gilbert Consellado19-Sep-15 6:17
professionalGilbert Consellado19-Sep-15 6:17 
Question[SOLVED]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 1:18
Bastar Media18-Sep-15 1:18 
AnswerRe: Not Getting Proper Output From Compiled EXE File Pin
Pete O'Hanlon18-Sep-15 1:42
mvePete O'Hanlon18-Sep-15 1:42 
AnswerRe: Not Getting Proper Output From Compiled EXE File Pin
GuyThiebaut18-Sep-15 1:52
professionalGuyThiebaut18-Sep-15 1:52 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 1:59
Bastar Media18-Sep-15 1:59 
AnswerCODE: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 2:10
Bastar Media18-Sep-15 2:10 
Hearty Sorry for not posting the code:
Here is the code:

C#
public void WardList()
        {
            #region Load Values...
            int count = 1;
            List WWList = new List();
            Engine E = new Engine();
            SQLiteCommand CMD = new SQLiteCommand(E.SelectSQL("WARDS") + " ORDER BY [WARDNUMBER];", E.Conn);
            SQLiteDataReader RDR = CMD.ExecuteReader();
 
            while (RDR.Read())
            {
                WardWise WW = new WardWise();
                WW.Serial = count;
                WW.WardNumber = Convert.ToInt32(RDR["WARDNUMBER"]);
                WW.WardCount = WardCount(WW.WardNumber);
                WW.Name = RDR["NAME"].ToString();
                WW.Manager = RDR["MANAGER"].ToString();
                WW.TotalTax = WardExists(WW.WardNumber) ? WardWiseTax(WW.WardNumber) : 0;
                WW.TotalPaid = WardExists(WW.WardNumber) ? WardWiseTax(WW.WardNumber, false) : 0;
                WW.Balance = WW.TotalTax - WW.TotalPaid;
                count++;
                WWList.Add(WW);
            }
            #endregion

            using (ExcelPackage EP = new ExcelPackage(Masters, Template))
            {
                double hook = 8;
                ExcelWorksheet Sheet = EP.Workbook.Worksheets["AWW"];
 
                foreach (WardWise WW in WWList)
                {
                    Sheet.Cells["A" + hook].Value = WW.Serial;
                    Sheet.Cells["B" + hook].Value = WW.WardNumber + " [" + WW.WardCount + "]";
                    Sheet.Cells["C" + hook].Value = WW.Name;
                    Sheet.Cells["D" + hook].Value = WW.Manager;
                    Sheet.Cells["E" + hook].Value = WW.TotalTax;
                    Sheet.Cells["F" + hook].Value = WW.TotalPaid;
                    Sheet.Cells["G" + hook].Formula = ("E" + hook) + "-" + ("F" + hook);
                    hook++;
                }
                Sheet.Cells["A8:G" + (hook - 1)].Style.Border.Top.Style =
                    Sheet.Cells["A8:G" + (hook - 1)].Style.Border.Bottom.Style =
                    Sheet.Cells["A8:G" + (hook - 1)].Style.Border.Left.Style =
                    Sheet.Cells["A8:G" + (hook - 1)].Style.Border.Right.Style = ExcelBorderStyle.Thin;
 
                Sheet.Cells["G" + (hook + 1)].Formula = string.Format("SUM(G8:G{0})", hook - 1);
                Sheet.Cells["G" + (hook + 1)].Style.Font.Bold = true;
                Sheet.Cells["G" + (hook + 1)].Style.Border.Top.Style =
                    Sheet.Cells["G" + (hook + 1)].Style.Border.Bottom.Style =
                    Sheet.Cells["G" + (hook + 1)].Style.Border.Left.Style =
                    Sheet.Cells["G" + (hook + 1)].Style.Border.Right.Style = ExcelBorderStyle.Thick;
 
                EP.Save();
            }
            Process P = Process.Start(MastersFile);
            handle = P.MainWindowHandle;
            SetForegroundWindow(handle);
        }

GeneralRe: CODE: Not Getting Proper Output From Compiled EXE File Pin
Richard MacCutchan18-Sep-15 2:25
mveRichard MacCutchan18-Sep-15 2:25 
AnswerRe: Not Getting Proper Output From Compiled EXE File Pin
OriginalGriff18-Sep-15 2:25
mveOriginalGriff18-Sep-15 2:25 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 2:37
Bastar Media18-Sep-15 2:37 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
OriginalGriff18-Sep-15 4:14
mveOriginalGriff18-Sep-15 4:14 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Gonzoox18-Sep-15 9:29
Gonzoox18-Sep-15 9:29 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Matt T Heffron18-Sep-15 11:10
professionalMatt T Heffron18-Sep-15 11:10 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 20:05
Bastar Media18-Sep-15 20:05 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Matt T Heffron18-Sep-15 11:12
professionalMatt T Heffron18-Sep-15 11:12 
AnswerRe: Not Getting Proper Output From Compiled EXE File Pin
Wendelius18-Sep-15 20:15
mentorWendelius18-Sep-15 20:15 
General[CAUSE]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 20:52
Bastar Media18-Sep-15 20:52 
GeneralRe: [CAUSE]: Not Getting Proper Output From Compiled EXE File Pin
Wendelius18-Sep-15 21:31
mentorWendelius18-Sep-15 21:31 
GeneralRe: [CAUSE]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 21:41
Bastar Media18-Sep-15 21:41 
General[SOLVED]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 21:38
Bastar Media18-Sep-15 21:38 
GeneralRe: [SOLVED]: Not Getting Proper Output From Compiled EXE File Pin
Wendelius18-Sep-15 21:42
mentorWendelius18-Sep-15 21:42 
GeneralRe: [SOLVED]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 21:47
Bastar Media18-Sep-15 21:47 
QuestionNancyFx in OWIN and Windows Service host Pin
LIttle_Cat17-Sep-15 20:25
LIttle_Cat17-Sep-15 20:25 
AnswerRe: NancyFx in OWIN and Windows Service host Pin
Richard Andrew x6418-Sep-15 18:00
professionalRichard Andrew x6418-Sep-15 18:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.