Passing parameters to Word Template using ASP


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Passing parameters to Word Template using ASP

  1. #1
    Kshitiz Rastogi Guest

    Passing parameters to Word Template using ASP


    I want to pass the parameters to a Word Template which is present on the IIS
    server through ASP which accesses the data from the Oracle server.
    I know how to pass the parameters through VB but when i am doing this in
    ASP,it is giving error "unable to open the word document." Can u tell me
    why? Also,is it necessary to install MS- Word on the client side as well
    as server side.

    Software used : IIS 4.0,ASP2.0, MS-Word 97, Visual InterDev6.0

    Please advice asap.


  2. #2
    Pai raghu_pai_2000 Guest

    Re: Passing parameters to Word Template using ASP


    "Kshitiz Rastogi" <kshitizr@hotmail.com> wrote:
    >
    >I want to pass the parameters to a Word Template which is present on the

    IIS
    >server through ASP which accesses the data from the Oracle server.
    >I know how to pass the parameters through VB but when i am doing this in
    >ASP,it is giving error "unable to open the word document." Can u tell me
    >why? Also,is it necessary to install MS- Word on the client side as well
    >as server side.
    >
    >Software used : IIS 4.0,ASP2.0, MS-Word 97, Visual InterDev6.0
    >
    >Please advice asap.
    >


    hi Rusthogi,

    We had same kind of situation where in we were able to solve this problem.
    The script is something like this...

    <script language=vbscript>
    dim objWord
    Set objWord = CreateObject("Word.Application")
    objWord.Visible = true
    objWord.WindowState=Maximize
    objWord.Activate
    'objWord.Documents.Open "\\Gisi_siebel\inetpub\wwwroot\BCC_Ora73Test\proj\test3.doc"
    objWord.Documents.Open "\\Gisi_siebel\BCC_c\test3.doc"
    'objWord.Application.Quit
    Set objWord = Nothing
    </script>

    Try with this...(it opens the word document by name test3.doc that has specified.)

    thanks and regards
    Pai.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center