Results 1 to 8 of 8

Thread: UserDocument

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Posts
    30
    I was wondering what the usage of UserDocument is?

    Can you use it in webpages? and if so how?

    I wan't to create an application that is in the browserwindow. (thinking of IE)



    -Cheers!

  2. #2
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613
    UserDocument is the same as the normal form. it is used to display on the browser. However, the UserDocument object has most, but not all, of the events that are found on a Form object

    The simplest method to do is:

    Make normal application, then use ActiveX Documentation Migration Wizard to convert the form to User document.

    For more detail, please see MSDN.

    Regards,
    TheBao

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Posts
    30

    Question

    What I can't figure out is how to get the UserDocument in the browser window. When you debug VB creates a .vbd file witch IE opens. But that is just a temp-file, isn't it?

    I was wondering if it's possilbe to add a Userdocument in a HTML document. That would be the best solution for me. But if not possible how do I open the UserDocument? do I have to use the .vbd file?


  4. #4
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613
    Use the NavigateTo method to jump to a URL. For example, the following code presumes an ActiveX document named "axdMyDoc" exists:

    Example:
    Code:
    UserDocument.Hyperlink.NavigateTo _
    "c:\mydocs\axdmydoc.vbd"
    Code:
    Private Sub cmdGoForward_Click()
       On Error GoTo noDocInHistory
       UserDocument.Hyperlink.GoForward
       Exit Sub
    noDocInHistory:
       Resume Next
    End Sub
    Regards,
    TheBao

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Posts
    30
    well, one more question:

    How do I create the .vbd - file? That is the thing I can't figure out...

  6. #6
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613
    .vbd file is a binary version of your activex document.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Posts
    30
    I'm sorry to ask another quetion because I still don't really understand...

    How do you create a .vbd-file? is it created automaticly? if so, where is it created? in the path for your project?


  8. #8
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613
    Sorry for the late reply, I am just back from Easter holiday.

    Onto your problem:
    How do you create a .vbd-file? is it created automaticly? if so, where is it created? in the path for your project?
    Yes, .vdb file is created automatically when you compile your project. It is located in the path of your project.

    Regards,
    TheBao

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