PrintDial and Image Writer

G

Guest

I'm using the PrintDialog class in .Net 2.0. The user's selection of the
"Microsoft Office Document Image Writer" is ignored and the data is sent to
my LaserJet instead. How do I enable printing to the "Microsoft Office
Document Image Writer?

Thank you in avance for any helpful comments.
 
L

Linda Liu [MSFT]

Hi,

I perform a test on this issue, but I don't encounter the problem you
described. When I select the "Microsoft Office Document Image Writer" in
the print dialog and press Print button, the program begins to print the
document into a file with .MDI extension.

Have you changed the selected printer after the line of code showing up the
print dialog? You may add a line of code as follows to detect which printer
is selected after the print dialog is closed.

if (this.printDialog1.ShowDialog() == DialogResult.OK)
{
// add the following line of code to detect which printer is selectd
string printer = this.printDialog1.PrinterSettings.PrinterName;
....
}

You may also have a try reinstalling the Microsoft Office Document Image
Writer on your machine. Follow the steps below to do this.

1. Close all running applications. If you have any Office application
running, the driver will not be installed properly.
2. Go to "Control Panel" and "Add or Remove Programs".
3. Click on "Microsoft Office 2003" and then click on "Change".
4. Check "Add or Remove Features" and click "Next".
5. On the bottom of the page check "Choose advanced customization of
applications." and click "Next".
6. Under Microsoft Office click on the + sign in front of "Office Tools"
7. Locate the object "Microsoft Office Document Imaging", click the icon
and select "Not Available".
8. Click on "Update". This will uninstall the MODI driver.
9. Repeat steps 1 to 6 to go back to the same location you were before.
10. Locate the object "Microsoft Office Document Imaging", click the icon
and select "Run from My Computer".
11. Click on "Update".

If the above suggestions don't help, you may run your program on another pc
to see if the problem still exists.

Hope this helps.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
L

Linda Liu [MSFT]

Hi,

Thank you for your update and I'm glad to hear that you have solved the
problem already.

I am curious about the means you used to eliminate the problem. If you have
time, would you please tell me what the means is?


Sincerely,
Linda Liu
Microsoft Online Community Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top