|
Subject:
|
Need to Preview a MS Word Doc
|
|
Posted By:
|
GAF
|
Post Date:
|
11/9/2005 12:20:15 PM
|
Thanx in advance !!
i need to use the PrintPreviewDialog control to display a MS Word document wich already exists in the HD, im using VB.Net and windows forms, in fact i´m already been able to printout the document, but now i need to display it to the user but not from word's UI, but inside my application's window, the question is if there's a way to assign any PrintPreviewDialog's property for open and display a MS Word document or thru any method exposed by the MS Word's dll application class any help is welcome  
|
|
Reply By:
|
vkpatil
|
Reply Date:
|
11/10/2005 4:44:27 PM
|
Here is a sought of solution for your problem. Try it! it can be fun. Use Microsoft.Office.Core.dll in your project references. and then you can create a Word document like this.
Word.Application Wdoc = new Word.ApplicationClass(); Word.Document Doc = Wdoc.Documents.Open(............... ); \\there is a big list of arguments here... be sure that you fill them up.
Doc.PrintPreview();
Good Luck...
--Vijay.
|
|
Reply By:
|
GAF
|
Reply Date:
|
11/11/2005 2:13:45 PM
|
i forgot to tell u that i've already try that method, but i need to prevent the user from seein word's UI, and only show him or her the print preview, so my word app object has set the visible property to false, so when i display for them word's print preview it displays a blank page, i know it sound's weird, but bosses are always right, don't they? thank's a lot!!!
|