Click here to Skip to main content
15,921,660 members
Home / Discussions / C#
   

C#

 
AnswerRe: C#.net working with active directory Pin
SledgeHammer0123-Aug-11 12:49
SledgeHammer0123-Aug-11 12:49 
Questionhow to put condition under the table which is inside the repeater?? Pin
Dhyanga23-Aug-11 11:14
Dhyanga23-Aug-11 11:14 
SuggestionRe: how to put condition under the table which is inside the repeater?? Pin
Simon Bang Terkildsen23-Aug-11 11:28
Simon Bang Terkildsen23-Aug-11 11:28 
GeneralRe: how to put condition under the table which is inside the repeater?? Pin
Dhyanga23-Aug-11 12:06
Dhyanga23-Aug-11 12:06 
QuestionDatagridview to Excel.....Automate Reporting with Timer Pin
PDTUM23-Aug-11 9:48
PDTUM23-Aug-11 9:48 
AnswerRe: Datagridview to Excel.....Automate Reporting with Timer Pin
Dalek Dave23-Aug-11 11:33
professionalDalek Dave23-Aug-11 11:33 
GeneralRe: Datagridview to Excel.....Automate Reporting with Timer Pin
PDTUM23-Aug-11 12:32
PDTUM23-Aug-11 12:32 
AnswerRe: Datagridview to Excel.....Automate Reporting with Timer Pin
Mycroft Holmes23-Aug-11 15:09
professionalMycroft Holmes23-Aug-11 15:09 
Having read your reply to DD I wonder why you are using a DGV at all. I would do the following

Go into Excel and record a macro that saves your workbook to a folder. Take the macro and rewrite it into c# code. This will be the save method, consider that you will pass in a workbook and a filename to the method.

Use a timer with a tick method set to the interval you need
Your form starts the timer and has a listbox of the selected queries and the pass/fail of each process and a textbox with the destination folder.

In the tick event you:
Stop the timer
Get the datatable from SQL
instead of looping the columns/rows in the DGV loop the Rows/Columns of the datatable
for (int i = 0; i < dataGridViewReport.Columns.Count; i++)

use
for (int i = 0; i < Datatable.Columns.Count; i++)


Call your save method you have reconstructed from the excel macro
start the timer.

Your exception handling needs to deal with failed methods and write to the listbox data store and restart the timer.
In various places you need to log results to the listbox data store
Never underestimate the power of human stupidity
RAH

QuestionReading from a ListBox Pin
Wamuti23-Aug-11 5:57
Wamuti23-Aug-11 5:57 
AnswerRe: Reading from a ListBox [modified] Pin
Herboren23-Aug-11 6:27
Herboren23-Aug-11 6:27 
AnswerRe: Reading from a ListBox Pin
Eddy Vluggen23-Aug-11 11:13
professionalEddy Vluggen23-Aug-11 11:13 
QuestionIE Trickery [modified] Pin
Herboren23-Aug-11 2:35
Herboren23-Aug-11 2:35 
AnswerRe: IE Trickery Pin
Not Active23-Aug-11 3:08
mentorNot Active23-Aug-11 3:08 
GeneralRe: IE Trickery Pin
Herboren23-Aug-11 3:33
Herboren23-Aug-11 3:33 
GeneralRe: IE Trickery Pin
Herboren23-Aug-11 4:08
Herboren23-Aug-11 4:08 
QuestionHow to convert PDF to Flash Book Pin
vj.negi0823-Aug-11 2:31
vj.negi0823-Aug-11 2:31 
AnswerRe: How to convert PDF to Flash Book Pin
BobJanova23-Aug-11 5:08
BobJanova23-Aug-11 5:08 
QuestionVisual Studio build macro [modified] Pin
lukeer22-Aug-11 23:09
lukeer22-Aug-11 23:09 
AnswerRe: Visual Studio build macro Pin
Richard MacCutchan23-Aug-11 0:48
mveRichard MacCutchan23-Aug-11 0:48 
GeneralRe: Visual Studio build macro Pin
lukeer23-Aug-11 3:25
lukeer23-Aug-11 3:25 
Questioncan anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
lokesh battini22-Aug-11 21:50
lokesh battini22-Aug-11 21:50 
AnswerRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
Wayne Gaylard22-Aug-11 21:59
professionalWayne Gaylard22-Aug-11 21:59 
AnswerRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
OriginalGriff22-Aug-11 22:23
mveOriginalGriff22-Aug-11 22:23 
AnswerRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
nidobeb22-Aug-11 23:50
nidobeb22-Aug-11 23:50 
GeneralRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
Ravi Bhavnani23-Aug-11 3:22
professionalRavi Bhavnani23-Aug-11 3:22 

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.