Printing.Print Issue

Hello,
Got the source code from here to print a message as TIFF file:

Running the sample code brings 2 issues:
1st change the dpi and size of my whole app!
2nd creates a blank white TIFF file!

@australian.dev.nerds

Please ZIP and attach your input message file along with problematic TIFF file here for testing. We will investigate the issue and share our findings with you.

I’ve made the ready to run project so just open the solution and run it to see the 1st bug changing the main app’s DPI destructive change!

You can run the project to generate the TIFF yourself, but please see my .TIFF first.
The resulting empty/blank white page .TIFF is inside this folder:
WindowsApplication3\bin\Release
I tested with a few messages, all the same!

No comments!
WindowsApplication3.zip (3.8 MB)

@australian.dev.nerds

We have logged this problem in our issue tracking system as EMAILNET-40704. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Just a side note, this is not relying on the Windows Features: Microsoft XPS Document Writer (disabled by default) or Windows TIFF IFilter? (Both are not enabled on my test PC)

@australian.dev.nerds

Thanks for sharing the detail. We have logged it in our issue tracking system.

@australian.dev.nerds

Please check the attached code example. WindowsApplication3_2.zip (3.9 MB)

  • Your file has signature, you should remove signature before printing as shown below:
If (msg.IsSigned) Then msg = msg.RemoveSignature()