|
-
Sep 12th, 2002, 10:44 PM
#1
Thread Starter
Hyperactive Member
Populating Excel
Iam trying to populate an Excel sheet using the COM MS Excel Lib10.0 using the following code:
Excel.Application a = new Excel.Application();
Excel.Workbook wb = a.Open ("C:\book1.xls");
Excel.Worksheet ws = wb.Worksheets.Item (1);
ws. Cells [2, 1].value = "YOUR STRING VALUE";
ws. Cells[ 2, 2].value = "YOUR STRING VALUE";
I get errors in the underlined lines. Help me out?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|