Click here to Skip to main content
16,011,626 members
Home / Discussions / C#
   

C#

 
GeneralRe: Assembly Error! Pin
Mazdak14-May-02 3:23
Mazdak14-May-02 3:23 
GeneralRe: Assembly Error! Pin
James T. Johnson14-May-02 3:32
James T. Johnson14-May-02 3:32 
GeneralRe: Assembly Error! Pin
Mazdak14-May-02 4:56
Mazdak14-May-02 4:56 
Generalstupid question, while I rebuild my development machine.... Pin
Ollie14-May-02 0:16
Ollie14-May-02 0:16 
GeneralRe: stupid question, while I rebuild my development machine.... Pin
David Wengier14-May-02 0:23
David Wengier14-May-02 0:23 
GeneralRe: stupid question, while I rebuild my development machine.... Pin
James T. Johnson14-May-02 0:21
James T. Johnson14-May-02 0:21 
GeneralRe: stupid question, while I rebuild my development machine.... Pin
Kannan Kalyanaraman15-May-02 4:53
Kannan Kalyanaraman15-May-02 4:53 
GeneralExcel in VC# Pin
Member 1697713-May-02 23:40
Member 1697713-May-02 23:40 
Hi,All
I want to access Microsoft Excel Sheet in Visual C#.In one button click i am writting following code:

Excel.Application ExcelApp = new Excel.ApplicationClass ();
Excel.Worksheet sheet ;
sheet = (Excel.Worksheet) ExcelApp.Workbooks.Open("D:\\AccessExcelInVB\\Data.xls",1,1,1,1,1,1,1,1,1,1,1,1).Sheets.get_Item("Data");
MessageBox.Show( sheet.Cells.get_Item(12,12));

I want to access the data in (12,12)'th cell and show it in MessageBox,i need to compare it with string in further code.

But it gives error that object can not be converted to string.

Can anybody tell me how should i convert object to string?
Thanx and Regards
Tushar
GeneralRe: Excel in VC# Pin
James T. Johnson13-May-02 23:49
James T. Johnson13-May-02 23:49 
GeneralRe: Excel in VC# Pin
Member 1697714-May-02 1:53
Member 1697714-May-02 1:53 
GeneralRe: Excel in VC# Pin
James T. Johnson14-May-02 1:58
James T. Johnson14-May-02 1:58 
GeneralRe: Excel in VC# Pin
Member 1697714-May-02 2:50
Member 1697714-May-02 2:50 
GeneralRe: Excel in VC# Pin
James T. Johnson14-May-02 3:29
James T. Johnson14-May-02 3:29 
GeneralRe: Excel in VC# Pin
Member 1697714-May-02 3:58
Member 1697714-May-02 3:58 
GeneralRe: Excel in VC# Pin
David Wengier14-May-02 0:25
David Wengier14-May-02 0:25 
QuestionHow to access .DBF file using C# Pin
cn057413-May-02 23:11
cn057413-May-02 23:11 
AnswerRe: How to access .DBF file using C# Pin
Nish Nishant13-May-02 23:32
sitebuilderNish Nishant13-May-02 23:32 
GeneralRe: How to access .DBF file using C# Pin
cn057414-May-02 14:24
cn057414-May-02 14:24 
Question'asm' blocks in C#? Pin
Andy Patterson13-May-02 21:35
Andy Patterson13-May-02 21:35 
AnswerRe: 'asm' blocks in C#? Pin
Nish Nishant13-May-02 21:56
sitebuilderNish Nishant13-May-02 21:56 
GeneralRe: 'asm' blocks in C#? Pin
Andy Patterson13-May-02 22:48
Andy Patterson13-May-02 22:48 
GeneralWriting a simple text file Pin
tcs13-May-02 13:03
tcs13-May-02 13:03 
GeneralRe: Writing a simple text file Pin
Christian Graus13-May-02 13:08
protectorChristian Graus13-May-02 13:08 
GeneralRe: Writing a simple text file Pin
Rama Krishna Vavilala13-May-02 14:06
Rama Krishna Vavilala13-May-02 14:06 
GeneralRe: Writing a simple text file Pin
Rama Krishna Vavilala13-May-02 14:07
Rama Krishna Vavilala13-May-02 14:07 

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.