From f9ba96fdd8bddb62a192f287ef36185c72fa85b5 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 7 Nov 2013 21:43:47 +0000 Subject: [PATCH] Use Selected Slave to create a specific version of the PDFs for MSWord sections. Replace with DocVersionConfig.Unit_Text Added logic to handle setting UseISO19005_1 when creating a PDF from an MSWord Section. Set the plot background to white if not doing compare and transparent if doing a compare. Use Selected Slave (Unit) to create a specific version of the PDFs for MSWord sections. --- .../Extension/DocumentExt.cs | 25 +++++++++++++------ .../VEPROMS.CSLA.Library/Extension/PdfExt.cs | 5 ++-- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index 599ce214..e147e938 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -650,13 +650,14 @@ namespace VEPROMS.CSLA.Library { DocStyle myDocStyle = sect.ActiveSection.MyDocStyle; SectionConfig sc = sect.ActiveSection.MyConfig as SectionConfig; + int ss = sect.MyDocVersion.DocVersionConfig.SelectedSlave; if (sc != null && sc.Section_WordMargin == "Y") { - using (Pdf myPdf = Pdf.MakePdf(doc, MSWordToPDF.DebugStatus, 0, 0, 0, 0, (double)sect.MSWordPageCount, buf)) { ;} + using (Pdf myPdf = Pdf.MakePdf(doc, ss*10 + MSWordToPDF.DebugStatus, 0, 0, 0, 0, (double)sect.MSWordPageCount, buf)) { ;} } else { - using (Pdf myPdf1 = Pdf.MakePdf(doc, MSWordToPDF.DebugStatus, (int)myDocStyle.Layout.TopMargin, (int)myDocStyle.Layout.PageLength, + using (Pdf myPdf1 = Pdf.MakePdf(doc, ss*10 + MSWordToPDF.DebugStatus, (int)myDocStyle.Layout.TopMargin, (int)myDocStyle.Layout.PageLength, (int)myDocStyle.Layout.LeftMargin, (int)myDocStyle.Layout.PageWidth, (double)sect.MSWordPageCount, buf)) { ;} } doc.UpdateDRoUsages(roids); @@ -805,6 +806,13 @@ namespace VEPROMS.CSLA.Library if (type == null) type = 0; // If multiple return values includes X-Y Plot, check to see if it is an X-Y Plot + if (val == null) + { + if(sel.Text == "") val =lookup.DocVersionInfo.DocVersionConfig.Unit_Text; + //val = "",MyDocVersion.DocVersionConfig.Unit_ID); + //text = text.Replace(@"", _MyItemInfo.MyDocVersion.DocVersionConfig.Unit_ProcedureSetID); + //text = text.Replace("", _MyItemInfo.MyDocVersion.DocVersionConfig.Unit_Number); + } if ((type & 4) == 4 && val.StartsWith("<