Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
AnswerRe: sending remainder mail at regular intervals Pin
Ashfield6-Jun-08 2:27
Ashfield6-Jun-08 2:27 
AnswerRe: sending remainder mail at regular intervals Pin
Russell Jones6-Jun-08 2:52
Russell Jones6-Jun-08 2:52 
AnswerRe: sending remainder mail at regular intervals Pin
Gareth H6-Jun-08 3:20
Gareth H6-Jun-08 3:20 
AnswerRe: sending remainder mail at regular intervals Pin
Vasudevan Deepak Kumar6-Jun-08 3:40
Vasudevan Deepak Kumar6-Jun-08 3:40 
AnswerRe: sending remainder mail at regular intervals Pin
#realJSOP6-Jun-08 3:44
mve#realJSOP6-Jun-08 3:44 
QuestionTransmission of Video File Pin
DeepOceans6-Jun-08 1:24
DeepOceans6-Jun-08 1:24 
AnswerRe: Transmission of Video File Pin
#realJSOP6-Jun-08 1:41
mve#realJSOP6-Jun-08 1:41 
Questionusing Microsoft.Office.Interop.Word.Document Pin
ShimnaMukundan6-Jun-08 1:24
ShimnaMukundan6-Jun-08 1:24 
Hi All,

According to my requirement i need to get the webpagepreview of the active word document in a new window. Can anyone help with this...

This is my code

protected Microsoft.Office.Interop.Word.ApplicationClass objWord = new ApplicationClass();
object fltDocFormat = 10;
protected object missing = System.Reflection.Missing.Value;
protected object readOnly = false;
protected object isVisible = false;
object FileName //The path where i stored the file
objWord.Documents.Open(ref FileName, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing, ref missing);
Microsoft.Office.Interop.Word.Document oDoc = objWord.ActiveDocument;
oDoc.WebPagePreview();
objWord.Quit(ref missing, ref missing, ref missing);



The preview is coming in the same window i need it in a new browser window


Plz help
QuestionStart Window Services Pin
Tejal Bhavsar6-Jun-08 1:08
Tejal Bhavsar6-Jun-08 1:08 
AnswerRe: Start Window Services Pin
Programm3r6-Jun-08 1:32
Programm3r6-Jun-08 1:32 
GeneralRe: Start Window Services Pin
Tejal Bhavsar6-Jun-08 1:56
Tejal Bhavsar6-Jun-08 1:56 
AnswerRe: Start Window Services Pin
#realJSOP6-Jun-08 1:42
mve#realJSOP6-Jun-08 1:42 
GeneralRe: Start Window Services Pin
Tejal Bhavsar6-Jun-08 2:17
Tejal Bhavsar6-Jun-08 2:17 
GeneralRe: Start Window Services Pin
#realJSOP6-Jun-08 3:48
mve#realJSOP6-Jun-08 3:48 
QuestionCustom protocol handler Pin
asma_panjabi6-Jun-08 0:49
asma_panjabi6-Jun-08 0:49 
QuestionHow to know nbr of pages to print Pin
Kr_Chandan5-Jun-08 23:49
Kr_Chandan5-Jun-08 23:49 
AnswerRe: How to know nbr of pages to print Pin
Pete O'Hanlon6-Jun-08 1:45
mvePete O'Hanlon6-Jun-08 1:45 
GeneralRe: How to know nbr of pages to print Pin
Kr_Chandan6-Jun-08 2:34
Kr_Chandan6-Jun-08 2:34 
AnswerRe: How to know nbr of pages to print Pin
Gareth H6-Jun-08 3:45
Gareth H6-Jun-08 3:45 
QuestionCrystal Report Requirements Pin
Programm3r5-Jun-08 23:27
Programm3r5-Jun-08 23:27 
AnswerRe: Crystal Report Requirements Pin
Harvey Saayman6-Jun-08 7:07
Harvey Saayman6-Jun-08 7:07 
AnswerRe: Crystal Report Requirements Pin
egenis8-Jun-08 20:47
egenis8-Jun-08 20:47 
QuestionHow to Insert more than one row in a single click using stored procedure Pin
NK75-Jun-08 22:57
NK75-Jun-08 22:57 
AnswerRe: How to Insert more than one row in a single click using stored procedure Pin
Simon P Stevens6-Jun-08 0:13
Simon P Stevens6-Jun-08 0:13 
AnswerRe: How to Insert more than one row in a single click using stored procedure Pin
Ashfield6-Jun-08 3:22
Ashfield6-Jun-08 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.