| |
cricks
Posts: 5
Score: 0
Joined: 2/15/2005
From:
Status: offline
|
This is my very first attempt to use .vbs. What I am attempting to do is pass a URL that I have dynamically created in the asp. I don't have a clue about vbscript syntax. This is the code that I am passing into the .vbs from the asp. The variable PublicJobDescPath holds the value of the URL I am attempting to print. Response.Redirect("PrintJobDesc.vbs?PublicJobDescPath") This is the code in the .vbs. Dim Word, Doc, Brown Const wdDialogToolsSpellingAndGrammar = 828 Const wdDoNotSaveChanges = 0 Set Word = CreateObject("Word.Application") MsgBox " The URL is " & publicJobDescPath & "."Set Doc = Word.Documents.Open(PublicJobDescPath) Doc.PrintOut(False) doc.Close Word.Quit I am not picking up the URL on the .asp side it is just not getting passed on. Any suggestions would be greatly appreciated.
|
|