Look up JNI to VB. As a hint of getting functions for VB without having to search Microsoft APIs. Just record a macro for everything you need to do. Then edit the source of that macro.
Here's a simpler way that only works in IE (as far as I know): http://www.dynamicdrive.com/dynamicindex9/printstyle.htm -Tim -----Original Message----- From: Raghava Krishna (CTC) [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 9:59 AM To: [EMAIL PROTECTED] Subject: Re: printing a document on click of button Thanks for ur reply. can u please tell me how to link VB libraries for Office. Thanks in advance raghava > -----Original Message----- > From: Chen, Gin [SMTP:[EMAIL PROTECTED]] > Sent: Monday, June 10, 2002 7:18 PM > To: [EMAIL PROTECTED] > Subject: Re: printing a document on click of button > > just do a window.print() in the onclick event of the button if the > document > is already showing. > if it is not then you might link to the VB libraries for Office. > > -Tim > > -----Original Message----- > From: Raghava Krishna (CTC) [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 10, 2002 5:35 AM > To: [EMAIL PROTECTED] > Subject: printing a document on click of button > > > hi all > i have a requirement: > i want a document to be printed on click of a button in the web > page.i.e.it > should not open a word document.it should directly connect to printer and > the document is to be printed. > pls if anyone knows the logic or content present in any sites pls let me > know > thanks in advance > raghava > > __________________________________________________________________________ > _ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > __________________________________________________________________________ > _ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
