Integrating ASP and MS Word.... How do I?

Results 1 to 2 of 2

Thread: Integrating ASP and MS Word.... How do I?

  1. #1
    Vinod Guest

    Default Integrating ASP and MS Word.... How do I?

    Hi,<BR> My assignment involves, opening a word document through ASP, insert a word file into it. The doc file has to be saved locally on the server. <BR> <BR> I&#039am able to open the word application, but not able to insert another file nor able to save it locally.<BR><BR> Any pointers or solution to solve this problem is highly appreciated.<BR><BR>Thanx<BR><BR>Smiles...<BR>Vino d.<BR><BR><BR><BR><BR><BR>

  2. #2
    Ryan S Guest

    Default RE: Integrating ASP and MS Word.... How do I?

    The way to do this is to create a WordBasic/VBA macro or script to do the code. While I cannot help you on the actual code, the module would be one that took in command line options, or in the least subroutine options, and then inserted those values. For example, the options might be the file to open, the file to insert, the final file to save to. Then the program flow would be this<BR><BR>Sub mySub(FileOpe, FileIns, FileFin)<BR> Open FileOpe<BR> Open FileIns<BR> Copy FileIns text to clip board<BR> Paste FileInst text to FileOpe<BR> Save as FileFin<BR> Close Word<BR>End Sub

Posting Permissions

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