Solved

Microsoft Office Document Image Writer Problem

Posted on 2010-11-29
6
1,103 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 

Accepted Solution

by:
vb7guy earned 0 total points
ID: 34244998
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
ID: 34245064
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:vb7guy
ID: 34245149
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
ID: 34245209
Excellent !!
0
 

Author Closing Comment

by:vb7guy
ID: 34281068
0

Featured Post

Turn Insights Into Action

You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.

With xMatters, you'll never miss a beat.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is about my first experience with programming Arduino.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

696 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