Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# accuracy probleb (double) Pin
Luc Pattyn7-Jul-09 8:27
sitebuilderLuc Pattyn7-Jul-09 8:27 
QuestionExcel Parseing Pin
guchu7-Jul-09 7:26
guchu7-Jul-09 7:26 
AnswerRe: Excel Parseing Pin
DarrenShultz7-Jul-09 8:21
DarrenShultz7-Jul-09 8:21 
GeneralRe: Excel Parseing Pin
guchu8-Jul-09 22:17
guchu8-Jul-09 22:17 
GeneralRe: Excel Parseing Pin
DarrenShultz9-Jul-09 5:18
DarrenShultz9-Jul-09 5:18 
QuestionEmail In C# Pin
kibromg7-Jul-09 5:41
kibromg7-Jul-09 5:41 
AnswerRe: Email In C# PinPopular
Christian Graus7-Jul-09 5:42
protectorChristian Graus7-Jul-09 5:42 
GeneralRe: Email In C# Pin
kibromg7-Jul-09 5:57
kibromg7-Jul-09 5:57 
GeneralRe: Email In C# Pin
Eddy Vluggen7-Jul-09 6:02
professionalEddy Vluggen7-Jul-09 6:02 
GeneralRe: Email In C# PinPopular
EliottA7-Jul-09 7:00
EliottA7-Jul-09 7:00 
GeneralRe: Email In C# Pin
Luc Pattyn7-Jul-09 8:39
sitebuilderLuc Pattyn7-Jul-09 8:39 
GeneralRe: Email In C# Pin
EliottA7-Jul-09 9:32
EliottA7-Jul-09 9:32 
GeneralRe: Email In C# Pin
Luc Pattyn7-Jul-09 12:06
sitebuilderLuc Pattyn7-Jul-09 12:06 
GeneralRe: Email In C# Pin
kibromg7-Jul-09 23:20
kibromg7-Jul-09 23:20 
QuestionTransparent Pictureboxes Pin
Jordanwb7-Jul-09 5:40
Jordanwb7-Jul-09 5:40 
AnswerRe: Transparent Pictureboxes Pin
Christian Graus7-Jul-09 5:43
protectorChristian Graus7-Jul-09 5:43 
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 

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.