-
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.
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks