Use Selected Slave to create a specific version of the PDFs for MSWord sections.

Replace <U-Text> 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.
This commit is contained in:
Rich
2013-11-07 21:43:47 +00:00
parent b19ce7c128
commit f9ba96fdd8
2 changed files with 21 additions and 9 deletions

View File

@@ -71,13 +71,14 @@ namespace VEPROMS.CSLA.Library
DocStyle myDocStyle = sect.ActiveSection.MyDocStyle;
SectionConfig sc = sect.ActiveSection.MyConfig as SectionConfig;
PdfInfo myPdf = null;
int ss = sect.MyDocVersion.DocVersionConfig.SelectedSlave;
if (sc != null && sc.Section_WordMargin == "Y")
{
myPdf = Get(sect.MyContent.MyEntry.DocID, MSWordToPDF.DebugStatus, 0, 0, 0, 0);
myPdf = Get(sect.MyContent.MyEntry.DocID, ss*10 + MSWordToPDF.DebugStatus, 0, 0, 0, 0);
}
else
{
myPdf = Get(sect.MyContent.MyEntry.DocID, MSWordToPDF.DebugStatus, (int)myDocStyle.Layout.TopMargin, (int)myDocStyle.Layout.PageLength,
myPdf = Get(sect.MyContent.MyEntry.DocID, ss*10 + MSWordToPDF.DebugStatus, (int)myDocStyle.Layout.TopMargin, (int)myDocStyle.Layout.PageLength,
(int)myDocStyle.Layout.LeftMargin, (int)myDocStyle.Layout.PageWidth);
}
if (myPdf != null) return myPdf;