Results 1 to 5 of 5
  1. #1
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,888
    Thanks
    4
    Thanked 271 Times in 248 Posts

    Hyperlink to create new file

    Is there a way to create a hyperlink for an intranet HTML document that will create a new file based on a template rather than opening the template file itself? Can this be done using a script? If so can you also set the pathname where the new document should be saved?
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  2. #2
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: Hyperlink to create new file

    You can create your own templates in FrontPage, once you have done that they will be listed in the File, New, Page Dialogue box. You can create a hyperlink to that new page, based on the new template. See the picture that follows:
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  3. #3
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,888
    Thanks
    4
    Thanked 271 Times in 248 Posts

    Re: Hyperlink to create new file

    Sorry Catherine, I didn't make it clear enough.

    I want to hold pages on the intranet that contain links that when clicked will create a new Word/Excel/Powerpoint etc file and save them to a specific directory according to data held in a text box on that page. I can do such a thing in VBA but would like to create the same thing in VB Script. I have no idea on the syntax required in the HTML page to do this.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  4. #4
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: Hyperlink to create new file

    Ah, so the end users will be creating the file. You want to make sure they are storing their files logically?
    Nifty idea.
    Sorry my answer was way off base. I'll watch with interest to see what comes up.
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  5. #5
    Lounger
    Join Date
    Apr 2003
    Location
    Pennsylvania, USA
    Posts
    30
    Thanks
    0
    Thanked 3 Times in 1 Post

    Re: Hyperlink to create new file

    Without having Word installed on the web server to call using it as some sort of an object server (?!?!?!) I doubt you will able to accomplish your goal.

    If you are willing to get that far into the weeds then may I suggest a book titled Instant ASP Components by Osborne/McGraw-Hill. It has a chapter that describes how to call MS-Wword in ASP and insert elements from an HTML form into the document, save it, and send it to the user. It probably could be modified to suit your purpose but I am really not quailfied to say for sure. I will say this, I believe Word2k isn't really suited for this purpose since it would be single threaded thus limiting the number of concurrent web users who could create such a document. Also loading and unloading the word 'engine' on the server could be cumbersome as well.

    I also don't think a search and replace on the web server for an embeded saved directory in the word file will work either. I believe there is a checksum placed on the document when it is saved which would probably make word think the document has been corrupted when it was loaded by the user, but now I am really guessing on what might happen. You might want to try the word forum for some help on this, they may be able to help more.

    hr

Posting Permissions

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