• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 378
  • Last Modified:

Extend printdialog

Hi all,

I need to extend the printdialog in Windows (XP/Vista). I need to add a (hyperlink)button to it and be able to react to the click event for that button and interact with the 'normal' printdialog.
I prefer to create some kind of systemwide hook and capture all printdialogs for Windows but if this is not possible then I want to create this for Office 2007 (Word, Excel, Outlook...).

On MSDN I have found some articles but I need some C# sample code for this. Can anybody provide this?


  • 4
1 Solution
rovermAuthor Commented:
Hi, thanks but these are not sufficient (I already knew these).
This example only alters the printdialog that is created from my own application. This is not what I want to do.
So what you want to do is drop a hyperlink into *every* print dialog that can popup in the system?

 These Print dialogs may be customized, where are thinking of putting the hyperlink? You are looking at a huge rat hole..abandon hope for there be tigars.

 If you can tell us why you want to do this there may be a better solution.

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

rovermAuthor Commented:
Hi William,
The basic idea was to add a button to the printdialog of Word, then Excel, then Outlook.... and so on. I am a dotnet devver so using managed code I should be able to "easily" do this using C# for Office2007.
However, what about other applications (like notepad)?

Like I said in the opening post, I prefer to do it systemwide but if not possible then start with Word 2007.

The code that is executed behind 'my button' is not important, it could be anything.
rovermAuthor Commented:
btw: The code sample "PrintOddEven" on CodeProject might be usable if I could intercept the Word print command. Is there a way to do this? Maybe by creating an AddIn for Word2007?
rovermAuthor Commented:
Closing this question. I didn't solve the problem (yet) using C#. Using C++ it's possible to set a systemwide hook to capture every printdialog.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now