Click here to Skip to main content
15,889,266 members
Home / Discussions / C#
   

C#

 
QuestionUnformatted text in grid row when saved from rich txt box [modified] Pin
MathewPV19-Mar-10 0:56
MathewPV19-Mar-10 0:56 
AnswerRe: Unformatted text in grid row when saved from rich txt box Pin
Calla19-Mar-10 1:25
Calla19-Mar-10 1:25 
AnswerRe: Unformatted text in grid row when saved from rich txt box Pin
MathewPV19-Mar-10 1:34
MathewPV19-Mar-10 1:34 
GeneralRe: Unformatted text in grid row when saved from rich txt box Pin
Calla19-Mar-10 1:37
Calla19-Mar-10 1:37 
GeneralRe: Unformatted text in grid row when saved from rich txt box Pin
MathewPV21-Mar-10 18:57
MathewPV21-Mar-10 18:57 
QuestionFill string Array to Excel Pin
Mschauder19-Mar-10 0:09
Mschauder19-Mar-10 0:09 
AnswerRe: Fill string Array to Excel Pin
Dave Kreskowiak19-Mar-10 3:14
mveDave Kreskowiak19-Mar-10 3:14 
GeneralRe: Fill string Array to Excel Pin
Mschauder19-Mar-10 3:25
Mschauder19-Mar-10 3:25 
Hey

>> Also, there are versions of Excel that cannot hold 120,000 rows in a single sheet.

Office Excel 2007 can hold 1.048.576 rows.

>> Your only other option, instead of filling in a Worksheet object directly, is to write your data out to a .CSV file and open that in Excel.

Should have a .xls or .xlsx format and should can autosize cols and edit backcolor from the header.

>> You have to populate each cell with its appropriate value from your dataset.

There must be an another way...

...fill it with
for (int i = 0; i < UsingGrid.Cols; i++)
{
    for (int j = 0; j < UsingGrid.Rows; j++)
    {
        worksheet.Cells[j + 1, i + 1] = ConvertToExcelFormat(Convert.ToString(UsingGrid[j, i]));
    }
}


costs amount of time (up to 10 minutes)...
modified on Monday, March 22, 2010 3:56 AM

GeneralRe: Fill string Array to Excel Pin
Dave Kreskowiak19-Mar-10 12:17
mveDave Kreskowiak19-Mar-10 12:17 
GeneralRe: Fill string Array to Excel Pin
Dan Mos19-Mar-10 21:06
Dan Mos19-Mar-10 21:06 
AnswerRe: Fill string Array to Excel Pin
CikaPero18-Jul-10 22:27
CikaPero18-Jul-10 22:27 
Questiondll registration Pin
sindhumahe18-Mar-10 23:06
sindhumahe18-Mar-10 23:06 
AnswerRe: dll registration Pin
#realJSOP18-Mar-10 23:21
mve#realJSOP18-Mar-10 23:21 
AnswerRe: dll registration Pin
Anubhava Dimri18-Mar-10 23:21
Anubhava Dimri18-Mar-10 23:21 
AnswerRe: dll registration Pin
Hristo-Bojilov19-Mar-10 0:02
Hristo-Bojilov19-Mar-10 0:02 
AnswerRe: dll registration Pin
Pete O'Hanlon19-Mar-10 1:13
mvePete O'Hanlon19-Mar-10 1:13 
GeneralRe: dll registration Pin
#realJSOP19-Mar-10 1:54
mve#realJSOP19-Mar-10 1:54 
GeneralRe: dll registration Pin
Pete O'Hanlon19-Mar-10 2:07
mvePete O'Hanlon19-Mar-10 2:07 
GeneralRe: dll registration Pin
Wes Aday19-Mar-10 4:48
professionalWes Aday19-Mar-10 4:48 
QuestionGetChanges() & AcceptChanges() not working.... Pin
sjs4u18-Mar-10 23:00
sjs4u18-Mar-10 23:00 
AnswerRe: GetChanges() & AcceptChanges() not working.... Pin
Som Shekhar19-Mar-10 1:18
Som Shekhar19-Mar-10 1:18 
GeneralRe: GetChanges() & AcceptChanges() not working.... Pin
sjs4u19-Mar-10 1:48
sjs4u19-Mar-10 1:48 
GeneralRe: GetChanges() & AcceptChanges() not working.... Pin
Som Shekhar19-Mar-10 1:51
Som Shekhar19-Mar-10 1:51 
GeneralRe: GetChanges() & AcceptChanges() not working.... Pin
sjs4u19-Mar-10 2:04
sjs4u19-Mar-10 2:04 
GeneralRe: GetChanges() & AcceptChanges() not working.... Pin
Som Shekhar19-Mar-10 2:41
Som Shekhar19-Mar-10 2:41 

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.