Open An Office Word Document - Online Code


This is a simple code in Java to open your "OFFICE WORD DOCUMENT".

Source Code

import java.awt.Desktop;

public class OpenWordDocument

    public static void main(String[] a)
            Desktop desktop = null;
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.


Shamit Kumar Tomar on 2008-08-03 11:48:05 wrote,

Since the function can open any file, it would have been much better, if you would have shown to open any kind of file and the title must have been, "Open Any File".
Do better next time.