Added code to resolve issue with printing RNP document
Added code to resolve issue with printing BGE document
This commit is contained in:
@@ -798,6 +798,7 @@ namespace VEPROMS.CSLA.Library
|
||||
// force Print of MS Word Attachment to Final without revisions and comments
|
||||
myDoc.ActiveWindow.View.ShowRevisionsAndComments = false;
|
||||
myDoc.ActiveWindow.View.RevisionsView = LBWdRevisionsView.wdRevisionsViewFinal;
|
||||
int lastStart = sel.Start;
|
||||
while (sel != null)
|
||||
{
|
||||
if (statusChange != null) statusChange(VolianStatusType.Update, sel.Start, string.Format("{0} ROs Refreshed", ++roCount));
|
||||
@@ -935,6 +936,11 @@ namespace VEPROMS.CSLA.Library
|
||||
InsertROValue(sel, val, sect.ActiveFormat.PlantFormat.FormatData.ROData.UpRoIfPrevUpper);
|
||||
}
|
||||
sel = FindRO();
|
||||
if (sel != null && sel.Start == lastStart)
|
||||
{
|
||||
Console.WriteLine("Seems to be repeating find of ro that is not an ro: " + sel.Text);
|
||||
sel = null;
|
||||
}
|
||||
}
|
||||
if (statusChange != null) statusChange(VolianStatusType.Update, 0, "Creating PDF");
|
||||
sel = MyApp.Selection;
|
||||
@@ -1281,8 +1287,8 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
if (roValue == null)
|
||||
{
|
||||
//sel.Text = "RO Not Found";
|
||||
//sel.Font.Color = LBWdColor.wdColorRed;
|
||||
sel.Text = "RO Not Found";
|
||||
sel.Font.Color = LBWdColor.wdColorRed;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user