Applies to FlexLink Quotation Tool.

Can't print quotation

Typically you'll run into problems if your print templates (dotx) is sent from the administrator via mail and the administrator is located in a different country than you.

You'll see errors such as:

System.Runtime.InteropServices.COMException (0x800A175D): Could not open macro storage.

   at Microsoft.Office.Interop.Word.Documents.Add(Object& Template, Object& NewTemplate, Object& DocumentType, Object& Visible)

And 

System.IO.IOException: The process cannot access the file 'C:\Users\USSTS0\AppData\Local\Temp\FLQT_qoute_tmp.dotx' because it is being used by another process.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

This is caused by a locking mechanism in Windows/Outlook and is not FLQT releated. You can either unblock the files by right clicking on the .dotx file and unblock it via the properties window. Or you can download a command prompt tool from here : https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/unblock-file?view=powershell-5.1