Solved

Microsoft Office Document Image Writer Problem

Posted on 2010-11-29
6
1,083 Views
Last Modified: 2013-11-20
I have a pesky little problem with Microsoft Office Document Image Writer. I have a working vb.net code that creates word document(s) on the fly.  It then prints these documents to tiff file using Microsoft Office Document Image Writer.  For the most part everything prints to tiff fine expect for a preview of the image each time document is being printed.  I figure out a way to suppress this by changing the setting in Microsoft word by printing a test page to tiff and uncheck “View Document Image” option when it asked me to save the tiff file.  I need to make sure that it’s unchecked on each user’s pc before print documents.  Right now I have been doing this manually. I would like to be able to uncheck this using my .net code.
0
Comment
Question by:vb7guy
  • 3
  • 3
6 Comments
 
LVL 11

Expert Comment

by:DeepuAbrahamK
Comment Utility
0
 

Accepted Solution

by:
vb7guy earned 0 total points
Comment Utility
Hi, I found a solution. there is a Registry setting called "OpeninMODI" under
"HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\MODI\MDI writer "
if the value is set to 1 then it displays images after documents are printed to tiff.   This value has to be set to "0" before opening word document in my code.

CODE:
Dim Regkey As Microsoft.Win32.RegistryKey = Nothing

Regkey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\Microsoft\Office\" & as_OfficeVersion & "\MODI\MDI writer", True)

Regkey.SetValue("OpenInMODI", "0", Microsoft.Win32.RegistryValueKind.DWord)
0
 
LVL 11

Expert Comment

by:DeepuAbrahamK
Comment Utility
Excellent. But this will set it to all your programs for the current user. Make sure you reset this value after you have done with the printing process.

Best Regards,
DeepuAbrahamK
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:vb7guy
Comment Utility
Yes, I do check to see if the value is "0" or not before setting the Value.  If the value is "1" then I set it to "0", do all my printing And once I'm done printing I set the value back to what ever it was before.


Thank you.
0
 
LVL 11

Expert Comment

by:DeepuAbrahamK
Comment Utility
Excellent !!
0
 

Author Closing Comment

by:vb7guy
Comment Utility
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now