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

C#

 
GeneralRe: Transparent Pictureboxes Pin
Jordanwb7-Jul-09 5:49
Jordanwb7-Jul-09 5:49 
GeneralRe: Transparent Pictureboxes Pin
Christian Graus7-Jul-09 5:52
protectorChristian Graus7-Jul-09 5:52 
GeneralRe: Transparent Pictureboxes Pin
Luc Pattyn7-Jul-09 8:41
sitebuilderLuc Pattyn7-Jul-09 8:41 
Questionweb automation Pin
T_Teef7-Jul-09 5:11
T_Teef7-Jul-09 5:11 
AnswerRe: web automation Pin
DoctorMick7-Jul-09 5:33
DoctorMick7-Jul-09 5:33 
QuestionRead Outlook Message from msg file Pin
sajan_f7-Jul-09 4:15
sajan_f7-Jul-09 4:15 
AnswerUrgent request Pin
Not Active7-Jul-09 4:32
mentorNot Active7-Jul-09 4:32 
QuestionDataReader data writing to Excel sheet - cells in different row Pin
Krishna Aditya7-Jul-09 3:13
Krishna Aditya7-Jul-09 3:13 
Hi Guys,

I am DataReader to get data from DB and dump the data into Excel sheet using XML's.
but,as the data reader holds the data for entire row, i am unable to get the data for other cells.

from datareader, i am getting <b>txt1, dt1, dt2 </b>in a single row, but i have to export this data to excel in multiple rows,
like

<pre>if (CurTaskNode.ReadFormat == "ColumnbyColumn")
                                                                  { for (int iCol = 0; iCol &lt; lengthHeader; iCol++)
                                                                        {

                                                                              // Checking whether the Header data exists or not
                                                                              if (CurTaskNode.HeaderData[minCol] != "")
                                                                              {
                                                                                    //if (!(excelworksheet.Cells[CurTaskNode.DATA_MIN_ROW + minRow, CurTaskNode.DATA_MIN_COL + minCol]).Locked)
                                                                                    //{

                                                                                    // Assigning the Value from readerto   to the particular cell in excel sheet
                                                                                      
                                                                                                excelworksheet.Cells[CurTaskNode.DATA_MIN_ROW + minRow, CurTaskNode.DATA_MIN_COL + minCol] = values[iValueIndex];
                                                                                                iValueIndex++;

                                                                                    //}

                                                                              }
                                                                              minCol++;
                                                                        }
                                                                        minRow++;
                                                                  }
</pre>

so, xml has 2 tasks namely projdata, projduration, so for the first task it should take the data and put in excel cell( 1,1 ) and in second task it should place it excel (10,2) and (10, 3)

&lt;   &lt;Reference&gt;
                  &lt;SheetName&gt;Setup_View&lt;/SheetName&gt;
                  &lt;TaskName&gt;SubProjectName&lt;/TaskName&gt;
                  &lt;TaskName&gt;ProjectDuration&lt;/TaskName&gt;
            &lt;/Reference&gt; &gt;

pleasee help me in modifying the code??
Thanks Ramm
QuestionSerial Data Pin
Tauseef A7-Jul-09 2:39
Tauseef A7-Jul-09 2:39 
QuestionRe: Serial Data Pin
musefan7-Jul-09 2:43
musefan7-Jul-09 2:43 
AnswerRe: Serial Data Pin
Dave Kreskowiak7-Jul-09 3:47
mveDave Kreskowiak7-Jul-09 3:47 
QuestionOracle commit Pin
swpr7-Jul-09 2:24
swpr7-Jul-09 2:24 
AnswerRe: Oracle commit Pin
Christian Graus7-Jul-09 2:27
protectorChristian Graus7-Jul-09 2:27 
QuestionRe: Oracle commit Pin
musefan7-Jul-09 2:40
musefan7-Jul-09 2:40 
AnswerRe: Oracle commit Pin
Pete O'Hanlon7-Jul-09 2:50
mvePete O'Hanlon7-Jul-09 2:50 
QuestionOnPaint Pin
satsumatable7-Jul-09 2:20
satsumatable7-Jul-09 2:20 
AnswerRe: OnPaint Pin
Christian Graus7-Jul-09 2:27
protectorChristian Graus7-Jul-09 2:27 
AnswerRe: OnPaint Pin
musefan7-Jul-09 2:38
musefan7-Jul-09 2:38 
Questionhow to create XML using DataSet having more then one table? Pin
Sasmi_Office7-Jul-09 2:17
Sasmi_Office7-Jul-09 2:17 
AnswerRe: how to create XML using DataSet having more then one table? Pin
Dave Kreskowiak7-Jul-09 3:42
mveDave Kreskowiak7-Jul-09 3:42 
QuestionForm designer insisting on form being checked out Pin
Dan Neely7-Jul-09 2:11
Dan Neely7-Jul-09 2:11 
AnswerRe: Form designer insisting on form being checked out Pin
molesworth7-Jul-09 2:20
molesworth7-Jul-09 2:20 
GeneralRe: Form designer insisting on form being checked out Pin
Dan Neely7-Jul-09 2:31
Dan Neely7-Jul-09 2:31 
GeneralRe: Form designer insisting on form being checked out Pin
molesworth7-Jul-09 2:41
molesworth7-Jul-09 2:41 
GeneralRe: Form designer insisting on form being checked out Pin
Dan Neely7-Jul-09 3:17
Dan Neely7-Jul-09 3:17 

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.