Print Page | Close Window

Printing page displayed in WebControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9658
Printed Date: 16 June 2024 at 12:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Printing page displayed in WebControl
Posted By: Neil
Subject: Printing page displayed in WebControl
Date Posted: 21 February 2008 at 10:05am
Does anyone know how to print (and ideally print preview), a page displayed in the WebBrowser control?

I am using VB6. Some sample code will be helpful



Replies:
Posted By: joeliner
Date Posted: 21 February 2008 at 10:20am
Try this,

print preview
brwWebBrowser.ExecWB OLECMDID_PRINTPREVIEW, OLECMDEXECOPT_PROMPTUSER, 0, 0

print
brwWebBrowser.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, 0, 0

regards



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net