473,569 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PrintPreviewDia log / Microsoft Office Document Image Writer bug

I've run into the same bug described by shan_chennai in an earlier post
(look here
http://groups-beta.google.com/group/...844d0064afb245)

This occurs when the default printer is the "Microsoft Office Image Writer".
When the user does a print preview and selects the "Print" toolbar item, a
"save as" dialog appears. If (as is likely the case) the user cancels the
"save as". Under these circumstances, an exception
(System.Compone ntModel.Win32Ex c*eption: "The operation was canceled by the
user") is raised. Even with a try/catch block around all the code that pops
up the print preview dialog, this exception cannot be caught at runtime.
Actually, in Visual Studio .NET it *is* caught at runtime, but in the
compiled executable (with or without debug flags), the exception occurs in
some internal event handling of the toolbar button.

If anyone has any idea how this can be worked around, it would be greatly
appreciated. Thanks for your help.
Tom Clement
www.serena.com
Nov 17 '05 #1
0 1873

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2039
by: Greg Christie | last post by:
I think I have a somewhat unique situation here, so I thought I should post it for the few poor souls who run across it and try to google it like I did. First of all, I was getting the following error when trying to hit one of my pages... --------------------------------------------------------------------- Invalid URI: There is an...
3
2545
by: Ramsey Schaffnit | last post by:
Context: I have to print personal information on a preprinted form I've never seen using a printer I've never seen. I want to use a control to overlay the PrintPreview to indicate where I've printed. I want to use a separate control in order to allow the user to drag the field to a different position on the form so it doesn't have to come...
0
1769
by: scoimbra | last post by:
Hello there, I have a report in an access database that always prints to the MS Image Writer. I have to do this several times a day. Does any of you know how to implement a VB code to print this report to the MO Image Writer WITHOUT having to write the file name (and choose the directory) on the MOIW window everytime I choose to print...
3
22926
by: sachin | last post by:
How to customize PrintPreviewDialog, such that, addition of a new button, change the functionality of existing button should be possible programatically. Sample code will help a lot. Moreover, what happens before the document gets displayed in PrintPreviewDialog, i.e. whether entire document gets copied in printer driver spool or only 1 or 2...
2
5268
by: Paul Bromley | last post by:
Does anyone know if the filename can be set programatically and the 'Save as ' dialogue box suppressed? I presently use a 3rd party control and as all of the machines that I ma using have Microsoft Office Document Image Writer instlled, this would be an easier solution. Best wishes Paul Bromley
1
5686
by: Darrell Wesley | last post by:
Is there anyway to hook the PrintDialog to the printer icon on the PrintPreviewDialog? I know that you can print a document using the PrintDialog but it does not allow previewing and the PrintPreview dialog does not allow you to select a printer - is there a good and simple way to get around these problems. My users would like to select a...
0
1628
by: emebohw | last post by:
Hey all, weird problem. I cant seem to get a populated text field that has a hyperlink to work when I output my access report to MS office document image writer file. If I stick a 'label' type field on the report and put a url in there and print as msodiw then the hyperlink works. Anyone ever see this? Also, even on the access report, the...
0
3091
samurai jack
by: samurai jack | last post by:
Hi all champs I am trying to print one doc using Microsoft office document Image writer. But it opens the document ( *.prn file ) after spooling and before sending it to print. And does not give any save as dialog box as it get stuck while printing. Can anyone tell me, if there is any setting to disable opening the *.prn file before it print for...
1
3884
by: sainathparuchuri | last post by:
As a project requirement we need to convert word documents to tiff images. We have been using Microsoft Office Document Image Writer (MODI) for this puspose and doing absolutely well. But now this process need to be automated. Whenever a document is converted to tiff MODI pops up a "Save as" dialog box which asks the path to save the converted...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.