private void adxRibbonButton3_OnClick(object sender, AddinExpress.MSO.IRibbonControl control, bool pressed) { //TODO: Need to find out how are we selecting a target document ? string fileToCompare = @"D:\Wish.docx"; object readOnly = false; object AddToRecent = false; object Visible = false; object missing = System.Reflection.Missing.Value; //OfficeWord.Document docZero = app.Documents.Open(fileToOpen, ref missing, ref readOnly, ref AddToRecent, Visible: ref Visible); this.WordApp.ActiveDocument.Final = false; this.WordApp.ActiveDocument.TrackRevisions = false; this.WordApp.ActiveDocument.ShowRevisions = false; this.WordApp.ActiveDocument.PrintRevisions = false; //The OfficeWord.WdCompareTargetNew defines a new file, you can change this valid value to change how word will open the document this.WordApp.ActiveDocument.Compare(fileToCompare, missing, Word.WdCompareTarget.wdCompareTargetCurrent, true, false, false, false, false); }
private void adxRibbonButton2_OnClick(object sender, AddinExpress.MSO.IRibbonControl control, bool pressed) { System.Diagnostics.Process.Start(MozartUrl); }
private void adxRibbonButton1_OnClick(object sender, AddinExpress.MSO.IRibbonControl control, bool pressed) { LoginForm loginForm = new LoginForm(); loginForm.ShowDialog(); }