Cannot create activex object

Results 1 to 2 of 2

Thread: Cannot create activex object

  1. #1
    Join Date
    Dec 1969

    Default Cannot create activex object

    I am trying to create an excel sheet on the server side. I have written the following code. <BR><BR> Dim oExcel As Object<BR> Dim oBook As Object<BR> Dim oSheet As Object<BR> &#039;Start a new workbook in Excel.<BR> oExcel = CreateObject("Excel.Application")<BR><BR>But when i run the page i am getting an error that &#039;Cannot create activex object&#039;<BR><BR>I am not using VisualStudio.Net(i am using notepad). So i can not set a reference to MSExcel in the project. Is there any way to set the reference to MSExcel in the aspx page itself. Any help will be appreciated.<BR><BR>Cheers

  2. #2

    Default RE: Cannot create activex object

    When using COM from .Net and Visual Studio, VS does some work under the covers.<BR><BR>There are command line tools to do it but your best bet is to look on MSDN (search) for the words : com from .net<BR>You will get several usefull links.<BR><BR>There is also an article on the home page about word and .Net which might give you some clues.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts