?
Solved

How to Print Word Document

Posted on 2003-03-16
1
Medium Priority
?
223 Views
Last Modified: 2010-05-01
I have an Word Document in my form (in WebBrowser control)
Webbrowser1.Navigate = "c:\....doc"

Now ,I want to print it .
How can I do it ?
0
Comment
Question by:Inga_dusha
1 Comment
 
LVL 3

Accepted Solution

by:
DocM earned 160 total points
ID: 8147999

If a Word document is loaded into a WebBrowser Control, the following code will display the Word Print Dialog:

    webbrowser1.ExecWB _
     cmdid:=OLECMDID_PRINT, _
     cmdexecopt:=OLECMDEXECOPT_PROMPTUSER
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month8 days, 19 hours left to enroll

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question