Results 1 to 2 of 2

Thread: Vb Com And Asp

  1. #1
    leran
    Guest

    Question

    Hello,
    I wrote a VB COM using a reference to msword9.olb that should run under NT from ASP page.
    I checked it, and it runs perfect outside ASP but when i try use it from ASP page it get stuck. Here is the code. Can anyone tell me where i do wrong?

    1. Dim WordObj As Word.Application
    2. Set WordObj = New Word.Application

    3. WordObj.Documents.Open "Filename.doc"
    etc...

    It get stuck right after the line number 2( i.e. it can't create the object).

    Should i use some init?

    Please help me!!! This is very urgent!!!


  2. #2
    New Member
    Join Date
    Jan 2001
    Location
    Near Cardiff, Wales, UK
    Posts
    7
    ASP doesn't support early binding.

    Try changing your first two lines to:

    Dim WorjObj
    Set WordObj = server.createobject("Word.Application")

    That should help.
    The badder the better !
    Rob T

Posting Permissions

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



Click Here to Expand Forum to Full Width