Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


vbs/hta printing

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> vbs/hta printing
  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 >>
 vbs/hta printing - 12/20/2006 8:19:04 AM   
  swiftoid


Posts: 31
Score: 0
Joined: 10/20/2006
Status: offline
Hi, I have a program (a HTA) which outputs some html from a vbs script. At the moment when the user wants to print this out the page has to fill the whole HTA otherwise the rest of the program is displayed as well. I am just useing the document.print(); method of printing. Is their a way of printing out the contents of an IFRAME without it having to be visible?

_____________________________

Jamie Swift
<!---The Swiftanator---!>
www.swiftscripts.co.uk
 
 
Post #: 1
 
 RE: vbs/hta printing - 12/20/2006 8:41:19 AM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Since print() is a function of the window object, you should be able to refer to the iframe and print that instead:

document.getElementById("MyIFRAME").print()


_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to swiftoid)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> vbs/hta printing 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