Click here to Skip to main content
15,887,344 members
Home / Discussions / C#
   

C#

 
AnswerRe: Advice about Open Database Connection Pin
soulidentities13-Mar-09 5:17
soulidentities13-Mar-09 5:17 
GeneralRe: Advice about Open Database Connection Pin
Dave Kreskowiak13-Mar-09 5:31
mveDave Kreskowiak13-Mar-09 5:31 
GeneralRe: Advice about Open Database Connection Pin
Nagy Vilmos13-Mar-09 10:30
professionalNagy Vilmos13-Mar-09 10:30 
GeneralRe: Advice about Open Database Connection Pin
Dave Kreskowiak13-Mar-09 12:23
mveDave Kreskowiak13-Mar-09 12:23 
AnswerRe: Advice about Open Database Connection Pin
Luc Pattyn13-Mar-09 6:28
sitebuilderLuc Pattyn13-Mar-09 6:28 
QuestionRead lines on exel file Pin
abbd13-Mar-09 4:05
abbd13-Mar-09 4:05 
AnswerRe: Read lines on exel file Pin
Eddy Vluggen13-Mar-09 4:19
professionalEddy Vluggen13-Mar-09 4:19 
QuestionException de HRESULT : 0x800401A8 Pin
abbd13-Mar-09 4:50
abbd13-Mar-09 4:50 
Hello ,

I try for :


<br />
Microsoft.Office.Interop.Excel.Application excelApplication = null;<br />
            Microsoft.Office.Interop.Excel.Workbook workbook = null;<br />
            Microsoft.Office.Interop.Excel.Worksheet worksheet = null;<br />
<br />
            excelApplication = new Microsoft.Office.Interop.Excel.Application();<br />
            excelApplication.Visible = false;<br />
<br />
            workbook = excelApplication.Workbooks.Open(@"D:\Après\mailing_RA_20090219.xls", 0, false, 5, "", "", false, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "", true, false, 0, true, false, false);<br />
            worksheet = (Microsoft.Office.Interop.Excel.Worksheet)workbook.Worksheets[2];<br />
<br />
<br />
<br />
<br />
            excelApplication.Quit();<br />
            excelApplication = null;<br />
<br />
            string cellValue = "";<br />
            object cellObject = null;<br />
            Microsoft.Office.Interop.Excel.Range range = null;<br />
<br />
<br />
            range = (Microsoft.Office.Interop.Excel.Range)worksheet.Cells[3,2];<br />
<br />
            cellObject = range.get_Value(null);<br />
            cellValue = (cellObject == null ? "" : cellObject.ToString().Trim());<br />
<br />
<br />
            Console.WriteLine(cellValue);<br />


i have the exception on : range = (Microsoft.Office.Interop.Excel.Range)worksheet.Cells[3,2];, thank you verry mutch.
AnswerRe: Exception de HRESULT : 0x800401A8 Pin
Eddy Vluggen13-Mar-09 5:03
professionalEddy Vluggen13-Mar-09 5:03 
GeneralRe: Exception de HRESULT : 0x800401A8 Pin
abbd13-Mar-09 5:07
abbd13-Mar-09 5:07 
GeneralRe: Exception de HRESULT : 0x800401A8 Pin
Eddy Vluggen13-Mar-09 5:28
professionalEddy Vluggen13-Mar-09 5:28 
QuestionRe: Exception de HRESULT : 0x800401A8 Pin
abbd13-Mar-09 5:57
abbd13-Mar-09 5:57 
AnswerRe: Exception de HRESULT : 0x800401A8 Pin
Luc Pattyn13-Mar-09 6:30
sitebuilderLuc Pattyn13-Mar-09 6:30 
QuestionRe: Exception de HRESULT : 0x800401A8 Pin
abbd13-Mar-09 6:54
abbd13-Mar-09 6:54 
AnswerRe: Exception de HRESULT : 0x800401A8 Pin
Eddy Vluggen13-Mar-09 8:40
professionalEddy Vluggen13-Mar-09 8:40 
AnswerRe: Exception de HRESULT : 0x800401A8 Pin
v_130-Sep-11 21:05
v_130-Sep-11 21:05 
QuestionHow to create a excel file by C# in Window application Pin
ArunUtkarshaRana13-Mar-09 3:38
ArunUtkarshaRana13-Mar-09 3:38 
AnswerRe: How to create a excel file by C# in Window application Pin
Xmen Real 13-Mar-09 3:44
professional Xmen Real 13-Mar-09 3:44 
GeneralRe: How to create a excel file by C# in Window application Pin
ArunUtkarshaRana13-Mar-09 3:55
ArunUtkarshaRana13-Mar-09 3:55 
GeneralRe: How to create a excel file by C# in Window application Pin
Eddy Vluggen13-Mar-09 4:01
professionalEddy Vluggen13-Mar-09 4:01 
GeneralRe: How to create a excel file by C# in Window application Pin
Xmen Real 13-Mar-09 4:02
professional Xmen Real 13-Mar-09 4:02 
QuestionHTTP Error 400 - Bad Request. [modified] Pin
max 14313-Mar-09 2:46
max 14313-Mar-09 2:46 
AnswerRe: HTTP Error 400 - Bad Request. Pin
Bharat Jain13-Mar-09 3:25
Bharat Jain13-Mar-09 3:25 
GeneralRe: HTTP Error 400 - Bad Request. Pin
max 14313-Mar-09 3:36
max 14313-Mar-09 3:36 
GeneralRe: HTTP Error 400 - Bad Request. Pin
Eddy Vluggen13-Mar-09 4:04
professionalEddy Vluggen13-Mar-09 4:04 

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.