Template is .dot, I'm guessing you're still talking about regular Word .doc file in both cases. If the same exact file works in one transaction but doesn't work in another then I'm guessing the problem is not with the file or local Word installation but with QM02.
Check if there are any SAP notes for QM02, you can also use transaction ANST if it's available in your system. If nothing helps, open an incident with SAP and attach the screenshots showing that it works in another transaction.