Hello -
I'm opening/saving an Excel workbook from ASP.Net. When I try to save the
workbook I get the error:
System.Runtime. InteropServices .COMException: The remote procedure call failed.
Code:
Dim oExcel As New Excel.Applicati on()
Dim oBooks As Excel.Workbooks
Dim oBook As Excel.Workbook
oExcel.Visible = True
oExcel.DisplayA lerts = False
'Start a new workbook
oBooks = oExcel.Workbook s
oBooks.Open("c: \test.xls", 0)
oBook = oBooks.Item("te st.xls")
:
:
oBook.SaveAs(sT emplate) '**** Occurs Here *****
oBook.Close()
Suggestions/workarounds?
Thanks, Mark