Not ShellExecute .

  • 2
    Do you need Microsoft Word printed for you? Then you can't do without ShellExecute. Do you need to parse a Vord document yourself and print it out? Hemorrhoids are provided, look at the amount of code in OpenOffice, the length of the docx specification and be terrified. If you haven't changed your mind, try using the OOo or LibreOffice sources, but note that they are (1) complex and (2) come with an open-source license. - VladD

1 answer 1

  1. use openoffice. Example
  2. use MS Word via the COM interface. Example

WARNING !!! Office packages should be correctly installed on the PC where the utility launch is required, otherwise it will not work ...

You can also see a similar question on SO