I have a project to open a word document and print it out to a ps printstream. I want to suppress all pop-up window including the "password" dialogue that will be asked for a password protected document. I expect the open operation fail and return within VB. However, the window show up and hang the automation process. Please help
I aleady set the project property as
1. project type = ActiveX DLL
2. checked "Unattended execution"
3. Threading Model = "Apartment Threaded"
4. checked "Upgrade ActiveX Controls"
but the password dialogue still pop-up.
Or if don't want to open the file then, use a combination:
On Error Resume Next
Application.Documents.Open filename:="e:\test\protected.doc", passworddocument:="wrongpasswd",
Managing Active Directory does not always have to be complicated. If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…