While my mailmerges are observing formatting in the document such as italic, bold, colours and so forth, the applied typeface seems to be ignored.
One of my testers is applying Calibri to the merge template, but the document is output in Garamond, in both the resulting intermediate Word file and the final PDF version.
I have confirmed this behaviour in my test environment too.
I’d thought perhaps that the font was absent on the server, or not present on the testers machine. My test code runs locally where Office 2007 and Calibri is installed, so that covers that, plus the tester also has Office 2007, and has Calibri installed too.
The following lines are present in my code:
pdf.IsTruetypeFontMapCached = true;
pdf.TruetypeFontMapPath = System.IO.Path.GetTempPath();
as they greatly improve PDF creation, but removing them has not made a difference.
What did I miss?
Mark