Need to pass variable from asp.net to .vbs

Author Message
cricks

  • Total Posts : 5
  • Scores: 0
  • Reward points : 0
  • Joined: 2/15/2005
  • Location:
  • Status: offline
Need to pass variable from asp.net to .vbs Tuesday, February 15, 2005 9:39 AM (permalink)
0
This is my very first .vbs but I have done a fair amount of coding in vb.net.

What I am attempting to do is pass a URL that I have dynamically created in the aspx.

I don't have a clue about vbscript syntax.

This is the code that I am passing into the .vbs from the aspx. 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 not passed on to the .vbs. Any suggestions would be greatly appreciated. One other thing, since I am sending it in in URL form, can word open it?
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • 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
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9