added access to MSWord’s ShowRevisionsAndComments as well as

RevisionView
When we generate the PDFs for Word Attachments, we now for Word to print with ShowRevisionsAndComments set to False, and RevisionView set to ViewFinal (instead ViewFinalWithMarkups)
This commit is contained in:
2013-05-10 19:20:43 +00:00
parent 33688179ea
commit 06990b5c13
2 changed files with 61 additions and 43 deletions

View File

@@ -796,6 +796,9 @@ namespace VEPROMS.CSLA.Library
//sel.Range.Font.Color = (LBWdColor)WordColor(PrintOverride.OverrideTextColor(System.Drawing.Color.Black));
sel.Range.Font.Color = (LBWdColor)WordColor(OverrideColor == System.Drawing.Color.Transparent ? System.Drawing.Color.Black : OverrideColor);
sect.MSWordPageCount = myDoc.Length;
// force Print of MS Word Attachment to Final without revisions and comments
myDoc.ActiveWindow.View.ShowRevisionsAndComments = false;
myDoc.ActiveWindow.View.RevisionsView = LBWdRevisionsView.wdRevisionsViewFinal;
fileName = CreatePDF(fileName, openPdf);
MyApp.ActiveDocument.Close(false);
if (CloseWordWhenDone)