Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Need to send variable from .asp to .vbs

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,2067
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Need to send variable from .asp to .vbs
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Need to send variable from .asp to .vbs - 2/15/2005 8:32:54 AM   
  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.
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Need to send variable from .asp to .vbs Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts