logic to save word sections with resolved RO values for exporting the approved procedure
logic to create an export file with unlinked RO and Transition Commented out debug statements to help evaluate memory usage
This commit is contained in:
@@ -63,7 +63,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public partial class PdfInfo
|
||||
{
|
||||
public static PdfInfo Get(ItemInfo sect)
|
||||
public static PdfInfo Get(ItemInfo sect, bool ovrride)
|
||||
{
|
||||
int count = 0;
|
||||
while (count < 2)
|
||||
@@ -81,8 +81,12 @@ namespace VEPROMS.CSLA.Library
|
||||
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;
|
||||
if (count > 0) return null; // Could not find or create a pdf
|
||||
// ovrride forces the the printing of the word seciton, which creates a word file with resolved ROs, which is saved for an approved export
|
||||
if (!ovrride || (ovrride && count ==1))
|
||||
{
|
||||
if (myPdf != null) return myPdf;
|
||||
if (count > 0) return null; // Could not find or create a pdf
|
||||
}
|
||||
MSWordToPDF.SetDocPdf(sect.MyContent.MyEntry.MyDocument, sect);
|
||||
count++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user