Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
QuestionDownload sql Pin
papa198025-Nov-05 19:12
papa198025-Nov-05 19:12 
AnswerRe: Download sql Pin
WillemM26-Nov-05 0:35
WillemM26-Nov-05 0:35 
Questionhow to create excel sheet using c# Pin
sreesiri25-Nov-05 17:41
sreesiri25-Nov-05 17:41 
GeneralRe: how to create excel sheet using c# Pin
Vikram A Punathambekar25-Nov-05 23:47
Vikram A Punathambekar25-Nov-05 23:47 
AnswerRe: how to create excel sheet using c# Pin
Suelinda_W1-Dec-05 4:32
Suelinda_W1-Dec-05 4:32 
QuestionMultiple Instances of Windows Service ??? Pin
Mukesh Kumar Gupta25-Nov-05 17:38
Mukesh Kumar Gupta25-Nov-05 17:38 
AnswerRe: Multiple Instances of Windows Service ??? Pin
Mark DeVol29-Nov-05 11:30
Mark DeVol29-Nov-05 11:30 
QuestionUsing GetFiles Pin
MKlucher25-Nov-05 15:44
MKlucher25-Nov-05 15:44 
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 

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.