Click here to Skip to main content
15,900,816 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using GetFiles Pin
Vikram A Punathambekar26-Nov-05 0:09
Vikram A Punathambekar26-Nov-05 0:09 
Questionproblem with forms Pin
Sam 200625-Nov-05 13:55
Sam 200625-Nov-05 13:55 
AnswerRe: problem with forms Pin
Vikram A Punathambekar26-Nov-05 0:15
Vikram A Punathambekar26-Nov-05 0:15 
AnswerRe: problem with forms Pin
Dave Kreskowiak26-Nov-05 8:05
mveDave Kreskowiak26-Nov-05 8:05 
QuestionWindows Form freezes while code is running Pin
redbrad025-Nov-05 13:26
redbrad025-Nov-05 13:26 
AnswerRe: Windows Form freezes while code is running Pin
ventomito26-Nov-05 5:47
ventomito26-Nov-05 5:47 
GeneralRe: Windows Form freezes while code is running Pin
redbrad026-Nov-05 7:01
redbrad026-Nov-05 7:01 
QuestionWord Interface - save new file after a compare? Pin
nofacts25-Nov-05 12:50
nofacts25-Nov-05 12:50 
I have opened a Word Document and done a compare to another document, setting WdCompareTarget to New. Where I am stuck is saving the new document without user interaction.
Here is the code that compares the documents:
WordDoc1.Activate();
WordDoc1.TrackRevisions = true;
WordDoc1.ShowRevisions = true;
WordDoc1.PrintRevisions = true;
object CompareTarget = Word.WdCompareTarget.wdCompareTargetNew;
WordDoc1.Compare(
  secondfile,
  ref missing,
  ref CompareTarget,
  ref missing,
  ref missing,
  ref missing,
  ref missing,
  ref missing
  );

If I do:
object SaveChanges = true;
WordApp.Documents.Close(
  ref SaveChanges,
  ref missing,
  ref missing
  );

then the Word Close box comes up and I can specify a name, but I'd like to save to a file specified in a variable. How do I get a reference to the new document?

Thanks ...
AnswerRe: Word Interface - save new file after a compare? Pin
theFrenchHornet14-Dec-05 16:29
theFrenchHornet14-Dec-05 16:29 
QuestionPlotting with drawLines Pin
bwagz25-Nov-05 12:32
bwagz25-Nov-05 12:32 
AnswerRe: Plotting with drawLines Pin
Dave Kreskowiak26-Nov-05 7:57
mveDave Kreskowiak26-Nov-05 7:57 
GeneralRe: Plotting with drawLines Pin
bwagz26-Nov-05 10:11
bwagz26-Nov-05 10:11 
Questionwindows messaging Pin
Roy K25-Nov-05 12:16
Roy K25-Nov-05 12:16 
AnswerRe: windows messaging Pin
Curtis Schlak.25-Nov-05 13:41
Curtis Schlak.25-Nov-05 13:41 
GeneralRe: windows messaging Pin
Roy K25-Nov-05 16:43
Roy K25-Nov-05 16:43 
GeneralRe: windows messaging Pin
Curtis Schlak.26-Nov-05 7:11
Curtis Schlak.26-Nov-05 7:11 
QuestionAnyone with UserComponents experience Pin
rahulmballal25-Nov-05 12:08
rahulmballal25-Nov-05 12:08 
QuestionC# and SQL Express Primer Pin
budidharma25-Nov-05 11:27
budidharma25-Nov-05 11:27 
AnswerRe: C# and SQL Express Primer Pin
budidharma25-Nov-05 11:28
budidharma25-Nov-05 11:28 
QuestionCalls to OnPaint() - WinForms - VS 2005 Pin
mladen197425-Nov-05 10:44
mladen197425-Nov-05 10:44 
Questionnew desktop Pin
Sam 200625-Nov-05 9:58
Sam 200625-Nov-05 9:58 
AnswerRe: new desktop Pin
Dave Kreskowiak25-Nov-05 10:29
mveDave Kreskowiak25-Nov-05 10:29 
QuestionSqlDataAdapter and Data designers in VS8 Pin
Fernando A. Gomez F.25-Nov-05 9:26
Fernando A. Gomez F.25-Nov-05 9:26 
QuestionQu About Username and Password Encryption in C#.Net Pin
Reeturaja25-Nov-05 6:35
Reeturaja25-Nov-05 6:35 
QuestionHow to Encrypting Username and Password in C# Pin
Reeturaja25-Nov-05 6:35
Reeturaja25-Nov-05 6:35 

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.