How to intercept PowerPoint print

Add-in Express™ Support Service
That's what is more important than anything else

How to intercept PowerPoint print
intercept PowerPoint print after click File -> Print -> Print 
Subscribe
Garfield Huang




Posts: 8
Joined: 2019-06-03
Hello,
Getting started on an add-on that will intercept a print job from PowerPoint(click File -> Print -> Print). Is this possible? What event do I need to look at? Thanks!
Posted 03 Jun, 2019 21:53:14 Top
Andrei Smolin


Add-in Express team


Posts: 16306
Joined: 2006-05-11
Hello Garfield,

It seems there's no way to intercept it: Ribbon commands IdMso=FilePrintQuick and IdMso=PrintPreviewAndPrint (this one opens the Print tab) do not do this.

I suggest that you hide the group IdMso=GroupPrintSettings:
- put an ADXBackstageView onto the add-in module,
- add a tab to it; set the tab's IdMso=TabPrint
- add a group to the tab; set the group's IdMso=GroupPrintSettings; set Visible=false on the group.

As you can see this hides that button along with other controls (choose printer, print settings). You can add a custom group to the tab and populate the group with controls imitating the controls hidden. In this case, you'll have the full control over that button.

I wouldn't expect that custom controls have the very same look-and-feel as there built-in analogues: the Ribbon UI has many features not available through the API that Office provides.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 04 Jun, 2019 07:54:53 Top
Garfield Huang




Posts: 8
Joined: 2019-06-03
Thank you very much Andrei.

Best.
Posted 05 Jun, 2019 03:32:27 Top
Andrei Smolin


Add-in Express team


Posts: 16306
Joined: 2006-05-11
Welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Jun, 2019 05:09:56 Top