• Hyperlink to create new file

    Author
    Topic
    #352345

    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?

    Viewing 0 reply threads
    Author
    Replies
    • #512147

      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:

      • #512152

        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.

        • #512156

          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.

        • #521797

          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

    Viewing 0 reply threads
    Reply To: Hyperlink to create new file

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: