Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing when clicking on a link

Status
Not open for further replies.

Garreth21

Programmer
May 19, 2005
29
Hey everyone

I have a web page that displays order numbers on the screen. Each number is hyperlinked. I would like the packing slip to be printing when a order number is clicked on. Right now the page would pass the order number on to another page and it would print from there, but we need it to print when clicked on. All the printing takes place in a com object.

I've tried the onlClick event calling a javascript function that in turn calls a vbscript function, but I can't figure out how to get the order number passed in to the print call within vbscript.


Anyone have suggestions?
thanks
 
not completely sure..please show us some code...

but here is what i am thinking...

<a href= "#" ONCLICK = 'PrintOrder("<%=rs("OrderId")%>")'></a>

and the function....

<script language="VBscript">
Sub PrintOrder(OrderId)
'you can call the print method here are
'redirect it to another page based on the order id
End Sub
</script>

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top