I am trying to print outlook message files via COM Interface (version 2.4) in Delphi application, but it only works if PDFCreator set as a default printer. Even when I right click on .msg file and try to “Convert with PDFCreator” the default printer is still called instead of PDFCreator printer. There are no errors in the log file.
In my code, I initialize IPDFCreator object and then call PrintFileSwitchingPrinters with allowDefaultPrinterSwitch as true. I also set “Yes” on “Allow PDFCreator to temporarily change the default printer”.
Could you please help me to figure out what am I missing?