Run Macro if you ask solidworks to print

Hi,

I would like to know if there's a was tu auto run a macro when yous ask solidworks to print

ex:    if it's a drawing file, then it returns a message box telling you to save into PDF format and print that pdf instead of printing the solidworks drawing.  if it's a 3d file, it prints normaly.

I have a good idea how to write the macro , but I don't know how to run it when you ask SW to print...

thank you guys for you help.

Fred...

SolidworksApi macros