sorry if this comes off a bit strong but I don't understand why anyone would use com handles to create office files.
just a few reasons why not to use com handles - it is windows only, extremely slow, uses a ton of resources, horrible server side solution, definitely doesn't scale and even microsoft have officially said a decade ago it is a deprecated technology replaced by openxml.
in comparison with openxml you could create a file in milliseconds with almost no resources and it's cross platform.
i wrote an openxml tool for creating word and excel files which is free, commercial friendly open source and well documented which you can download from docxfactory.com but you don't have to use this project there are many other openxml tools to choose from.