Click here to Skip to main content
15,904,416 members
Home / Discussions / C#
   

C#

 
AnswerRe: populating collection of collection Pin
Wendelius24-Jul-08 7:08
mentorWendelius24-Jul-08 7:08 
QuestionEnable Apply button when needed Pin
JoZ CaVaLLo23-Jul-08 23:57
JoZ CaVaLLo23-Jul-08 23:57 
AnswerRe: Enable Apply button when needed Pin
Christian Graus24-Jul-08 0:03
protectorChristian Graus24-Jul-08 0:03 
AnswerRe: Enable Apply button when needed Pin
N a v a n e e t h24-Jul-08 0:07
N a v a n e e t h24-Jul-08 0:07 
AnswerRe: Enable Apply button when needed Pin
nelsonpaixao24-Jul-08 14:23
nelsonpaixao24-Jul-08 14:23 
Questioncrysatal reports Pin
lankaudaranga23-Jul-08 23:31
lankaudaranga23-Jul-08 23:31 
Questionunable to kill com object Pin
Mogaambo23-Jul-08 22:23
Mogaambo23-Jul-08 22:23 
AnswerRe: unable to kill com object Pin
0x3c024-Jul-08 0:18
0x3c024-Jul-08 0:18 
GeneralRe: unable to kill com object Pin
Mogaambo24-Jul-08 1:28
Mogaambo24-Jul-08 1:28 
AnswerRe: unable to kill com object Pin
stancrm24-Jul-08 2:48
stancrm24-Jul-08 2:48 
AnswerRe: unable to kill com object Pin
JoeRip24-Jul-08 10:54
JoeRip24-Jul-08 10:54 
GeneralRe: unable to kill com object Pin
JoeRip24-Jul-08 12:16
JoeRip24-Jul-08 12:16 
QuestionIs DBF table ANSI? Pin
JoZ CaVaLLo23-Jul-08 21:42
JoZ CaVaLLo23-Jul-08 21:42 
AnswerRe: Is DBF table ANSI? Pin
Guffa23-Jul-08 23:22
Guffa23-Jul-08 23:22 
GeneralRe: Is DBF table ANSI? Pin
JoZ CaVaLLo23-Jul-08 23:35
JoZ CaVaLLo23-Jul-08 23:35 
Questionprint a forms textbox data with out its background [modified] Pin
Anu Palavila23-Jul-08 21:31
Anu Palavila23-Jul-08 21:31 
AnswerRe: print a forms textbox data with out its background Pin
teejayem24-Jul-08 2:30
teejayem24-Jul-08 2:30 
QuestionCan't find PInvoke DLL 'dbnetlib.dll Pin
harcaype23-Jul-08 21:21
harcaype23-Jul-08 21:21 
AnswerRe: Can't find PInvoke DLL 'dbnetlib.dll Pin
Christian Graus23-Jul-08 23:39
protectorChristian Graus23-Jul-08 23:39 
AnswerRe: Can't find PInvoke DLL 'dbnetlib.dll Pin
harcaype24-Jul-08 2:01
harcaype24-Jul-08 2:01 
Questioncalling c# library in java through JNI Pin
kapilbansal8923-Jul-08 20:39
kapilbansal8923-Jul-08 20:39 
QuestionOnBeforeInstall and OnAfterInstall Events of the Configuration.Install.Installer class are not raised Pin
Shrikant Gujar23-Jul-08 20:15
Shrikant Gujar23-Jul-08 20:15 
AnswerRe: OnBeforeInstall and OnAfterInstall Events of the Configuration.Install.Installer class are not raised Pin
Eduard Keilholz24-Jul-08 1:02
Eduard Keilholz24-Jul-08 1:02 
Questioniterating in excel sheet Pin
Mogaambo23-Jul-08 19:58
Mogaambo23-Jul-08 19:58 
HI, I want to iterate only those rows of excel sheet where the data have written, means if user has filled only first 15 rows then my loop should iterate to 15 only,hO wcan i do that Below is sample code which iterates up to 65536 rows,unnecessarily ,but the data are present only in first 15 or 18 rows. Please give me a solution or an idea

This is my sample code

Microsoft.Office.Interop.Excel.Application Excelobj = new Microsoft.Office.Interop.Excel.Application();
if (Excelobj == null)
{
MessageBox.Show("Excel couldn't be started", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}

Workbook workbook = Excelobj.Workbooks.Open(fdgExcel.FileName,Type.Missing, Type.Missing, Type.Missing,Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing , Type.Missing, Type.Missing);

Sheets sheets = workbook.Worksheets;
Worksheet worksheet = (Worksheet)sheets.get_Item(1);


for (int i = 2; i < worksheet.Rows.Count;i++ )
{
Range range = worksheet.get_Range("A" + i.ToString(), "C" + i.ToString());
}
AnswerRe: iterating in excel sheet Pin
Jimmanuel24-Jul-08 3:19
Jimmanuel24-Jul-08 3:19 

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.