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

C#

 
QuestionPackage load error in VS2005? Pin
TheGreatAndPowerfulOz10-Nov-05 8:38
TheGreatAndPowerfulOz10-Nov-05 8:38 
QuestionLabel question Pin
Stanciu Vlad10-Nov-05 7:52
Stanciu Vlad10-Nov-05 7:52 
AnswerRe: Label question Pin
Anthony Mushrow10-Nov-05 8:01
professionalAnthony Mushrow10-Nov-05 8:01 
GeneralRe: Label question Pin
Stanciu Vlad10-Nov-05 8:35
Stanciu Vlad10-Nov-05 8:35 
AnswerRe: Label question Pin
Stanciu Vlad10-Nov-05 9:08
Stanciu Vlad10-Nov-05 9:08 
GeneralRe: Label question Pin
Anthony Mushrow10-Nov-05 9:27
professionalAnthony Mushrow10-Nov-05 9:27 
GeneralRe: Label question Pin
Dan Neely10-Nov-05 10:10
Dan Neely10-Nov-05 10:10 
QuestionExporting to Excel takes a very long time Pin
zaboboa10-Nov-05 7:33
zaboboa10-Nov-05 7:33 
Hello,

I am trying to export a datagrid to excel, I have two basic foreach statements:

<br />
int rowIndex=0;<br />
		  <br />
			<br />
			foreach(DataRowView row in dataview) {         <br />
				rowIndex++;       <br />
				ColumnIndex=0; <br />
				<br />
										<br />
				foreach(DataColumn col in dataview.Table.Columns) {<br />
					ColumnIndex++;    <br />
					if (ColumnIndex > 3) {            <br />
					   					   theRange = (Microsoft.Office.Interop.Excel.Range)excel.Cells[rowIndex+1,ColumnIndex-3];<br />
					   theRange.Font.Name = "Arial";<br />
					   theRange.Font.Size = 8;<br />
					   			   <br />
					  					}       <br />
				} // End of INNER FOREACH statement<br />
			} // End of OUTTER FOREACH statement <br />


Any ideas why it is so slow.
Thank you very much.
AnswerRe: Exporting to Excel takes a very long time Pin
KaptinKrunch10-Nov-05 8:49
KaptinKrunch10-Nov-05 8:49 
GeneralRe: Exporting to Excel takes a very long time Pin
zaboboa10-Nov-05 9:02
zaboboa10-Nov-05 9:02 
QuestionC# Book for a Course Pin
1nsp1r3d10-Nov-05 7:10
1nsp1r3d10-Nov-05 7:10 
Questiongroup box control Pin
Manu_8110-Nov-05 7:03
Manu_8110-Nov-05 7:03 
AnswerRe: group box control Pin
Dan Neely10-Nov-05 7:07
Dan Neely10-Nov-05 7:07 
QuestionDear Inheritance - A question for you Pin
Gulfraz Khan10-Nov-05 6:37
Gulfraz Khan10-Nov-05 6:37 
AnswerRe: Dear Inheritance - A question for you Pin
leppie10-Nov-05 7:02
leppie10-Nov-05 7:02 
GeneralRe: Dear Inheritance - A question for you Pin
Colin Angus Mackay10-Nov-05 13:29
Colin Angus Mackay10-Nov-05 13:29 
AnswerRe: Dear Inheritance - A question for you Pin
Robert Rohde10-Nov-05 20:51
Robert Rohde10-Nov-05 20:51 
QuestionTime Text Field Pin
charbelasmar10-Nov-05 5:46
charbelasmar10-Nov-05 5:46 
AnswerRe: Time Text Field Pin
Joshua Quick10-Nov-05 7:11
Joshua Quick10-Nov-05 7:11 
QuestionMouse Events Pin
rich_wenger10-Nov-05 3:54
rich_wenger10-Nov-05 3:54 
AnswerRe: Mouse Events Pin
Dan Neely10-Nov-05 4:54
Dan Neely10-Nov-05 4:54 
GeneralRe: Mouse Events Pin
rich_wenger10-Nov-05 5:08
rich_wenger10-Nov-05 5:08 
AnswerRe: Mouse Events Pin
Luis Alonso Ramos10-Nov-05 5:32
Luis Alonso Ramos10-Nov-05 5:32 
GeneralRe: Mouse Events Pin
Gulfraz Khan10-Nov-05 6:10
Gulfraz Khan10-Nov-05 6:10 
GeneralRe: Mouse Events Pin
rich_wenger10-Nov-05 6:15
rich_wenger10-Nov-05 6:15 

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.