private void button1_Click(object sender, EventArgs e) { //Create word document Document document = new Document(); document.LoadFromFile(@"..\..\..\..\..\..\Data\Word.doc"); //Save doc file. Image img = document.SaveToImages(0, ImageType.Metafile); img.Save("sample.bmp", System.Drawing.Imaging.ImageFormat.Bmp); //Launching the image file. WordDocViewer("sample.bmp"); } private void WordDocViewer(string fileName) { try { System.Diagnostics.Process.Start(fileName); } catch { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)