ashutosh9910
Active member
- Joined
- May 13, 2005
- Messages
- 44
Hi all,
I am trying to use Office Automation in my ASP.NET application using the Office XP PIAs.
This is the exception I gt when I try to create a workbook using the following code:
Try
Dim excel As Application = New Application
Dim wb As Workbook
Dim missing
wb = excel.Workbooks.Open("C:\Inetpub\wwwroot\ExcelWriter\Templets\BenchmarkData_Histogram.xls")
excel.Visible = True
wb.Activate()
Catch ex As Exception
Dim strError As String = ex.Message
End Try
It raises an exception on the line where I open the workbook:
wb = excel.Workbooks.Open("C:\Inetpub\wwwroot\ExcelWriter\Templets\BenchmarkData_Histogram.xls")
Kindly help.
THanks
Ashutosh
I am trying to use Office Automation in my ASP.NET application using the Office XP PIAs.
This is the exception I gt when I try to create a workbook using the following code:
Try
Dim excel As Application = New Application
Dim wb As Workbook
Dim missing
wb = excel.Workbooks.Open("C:\Inetpub\wwwroot\ExcelWriter\Templets\BenchmarkData_Histogram.xls")
excel.Visible = True
wb.Activate()
Catch ex As Exception
Dim strError As String = ex.Message
End Try
It raises an exception on the line where I open the workbook:
wb = excel.Workbooks.Open("C:\Inetpub\wwwroot\ExcelWriter\Templets\BenchmarkData_Histogram.xls")
Kindly help.
THanks
Ashutosh