one does not simply present a word document in a browser.
Because a browser cannot understand doc files.
What you can do is to get the decent program to open that file for you.
You can ask the OS to show you the program and then let the program open that doc file:
final Program p = Program.findProgram("doc");
p.execute(printFilePath);
That is pretty safe and for example often done with PDF.
If no program is installed you'll get a download dialog window.