Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
GeneralRe: size of an empty class Pin
pmarfleet11-Dec-07 2:36
pmarfleet11-Dec-07 2:36 
GeneralRe: size of an empty class Pin
Christian Graus10-Dec-07 23:56
protectorChristian Graus10-Dec-07 23:56 
QuestionDataTable.Select() finding data in all columns... Pin
thecodedemon10-Dec-07 22:12
thecodedemon10-Dec-07 22:12 
GeneralRe: DataTable.Select() finding data in all columns... Pin
CKnig10-Dec-07 23:18
CKnig10-Dec-07 23:18 
GeneralDropdownlist in a repeater Pin
minniemooo10-Dec-07 21:56
minniemooo10-Dec-07 21:56 
GeneralRe: Dropdownlist in a repeater Pin
Christian Graus10-Dec-07 22:20
protectorChristian Graus10-Dec-07 22:20 
QuestionHow to read and write a specific cell of MS Excel File Pin
dipak.dipak10-Dec-07 21:10
dipak.dipak10-Dec-07 21:10 
AnswerRe: How to read and write a specific cell of MS Excel File Pin
Abhijit Jana10-Dec-07 21:28
professionalAbhijit Jana10-Dec-07 21:28 
Hi Dipak ,
Try these Steps !!!
Step 1:

Add EXCEL Assembly To You Project !
Add a reference to the Excel 10 Object Library (Excel XP) by going to the Project-> Add Reference -> Go to the COM tab Select Excel 10 Object Library.

Step 2:
Using Excel ;


Step 3: Now create ExcelApplication, and WorkbookSheet to access any Excel file To read and Write!!!

private Excel.Application ExcelApp;
private Excel.Workbook objBook;
private Excel.Worksheet objSheet;

ExcelApp = new Excel.ApplicationClass();
ExcelApp.Visible = true;
objBook = ExcelApp.Workbooks.Add(missing);
objSheet = (Excel.Worksheet)objBook.Sheets["Sheet1"];
objSheet.Name = "SampleSheet";

objSheet.Cells[1, 1] = "Roll";
objSheet.Cells[2, 1] = "Name :;



Change Font Style
objSheet.get_Range("A1", "A1").Font.Bold = true;


Hope .. now you can Go Forword !!!!!

Good luck !!!!


Best Regards
-----------------
Abhijit Jana
View My CodeProject Articles

"Success is Journey it's not a destination"

GeneralRe: How to read and write a specific cell of MS Excel File Pin
dipak.dipak11-Dec-07 0:13
dipak.dipak11-Dec-07 0:13 
GeneralRe: How to read and write a specific cell of MS Excel File Pin
Abhijit Jana11-Dec-07 1:51
professionalAbhijit Jana11-Dec-07 1:51 
Questiondatagridview Pin
avvaru.murali10-Dec-07 21:04
avvaru.murali10-Dec-07 21:04 
GeneralRe: datagridview Pin
I.explore.code10-Dec-07 22:47
I.explore.code10-Dec-07 22:47 
QuestionRe: datagridview Pin
avvaru.murali10-Dec-07 22:54
avvaru.murali10-Dec-07 22:54 
Questionhow to identify a device which is connected to com port Pin
premkamalg10-Dec-07 20:49
premkamalg10-Dec-07 20:49 
GeneralRe: how to identify a device which is connected to com port Pin
Luc Pattyn11-Dec-07 1:23
sitebuilderLuc Pattyn11-Dec-07 1:23 
GeneralWrite Protecting a USB Flash Drive Programatically Pin
Ian Uy10-Dec-07 20:09
Ian Uy10-Dec-07 20:09 
QuestionRe: Write Protecting a USB Flash Drive Programatically Pin
Rojan Gh.10-Dec-07 22:41
professionalRojan Gh.10-Dec-07 22:41 
GeneralRe: Write Protecting a USB Flash Drive Programatically Pin
Ian Uy10-Dec-07 22:44
Ian Uy10-Dec-07 22:44 
QuestionXML or database...? Pin
Pankaj - Joshi10-Dec-07 19:52
Pankaj - Joshi10-Dec-07 19:52 
AnswerRe: XML or database...? Pin
StianSandberg10-Dec-07 20:34
StianSandberg10-Dec-07 20:34 
GeneralRe: XML or database...? Pin
blackjack215010-Dec-07 21:33
blackjack215010-Dec-07 21:33 
GeneralRe: XML or database...? Pin
Colin Angus Mackay10-Dec-07 22:25
Colin Angus Mackay10-Dec-07 22:25 
AnswerRe: XML or database...? Pin
darkelv10-Dec-07 21:05
darkelv10-Dec-07 21:05 
GeneralRe: XML or database...? Pin
Colin Angus Mackay10-Dec-07 22:20
Colin Angus Mackay10-Dec-07 22:20 
GeneralRe: XML or database...? Pin
darkelv11-Dec-07 0:30
darkelv11-Dec-07 0:30 

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.