Changed code to use ActiveSection rather than MyActiveSection
This commit is contained in:
@@ -321,7 +321,7 @@ namespace VEPROMS.CSLA.Library
|
||||
fs.Close();
|
||||
pdfFile.Delete();
|
||||
Pdf.DeleteAll(doc.DocID); // clear the PDF table for DocID first
|
||||
DocStyle myDocStyle = myItemInfo.MyActiveSection.MyDocStyle;
|
||||
DocStyle myDocStyle = myItemInfo.ActiveSection.MyDocStyle;
|
||||
using (Pdf myPdf = Pdf.MakePdf(doc, MSWordToPDF.DebugStatus, (int) myDocStyle.Layout.TopRow, (int) myDocStyle.Layout.PageLength,
|
||||
(int) myDocStyle.Layout.LeftMargin, (int) myDocStyle.Layout.PageWidth, (double)myItemInfo.MSWordPageCount, buf)) { ;}
|
||||
doc.UpdateDRoUsages(roids);
|
||||
@@ -431,7 +431,7 @@ namespace VEPROMS.CSLA.Library
|
||||
pdfFile.Delete();
|
||||
using (Document doc = docInfo.Get())
|
||||
{
|
||||
DocStyle myDocStyle = sect.MyActiveSection.MyDocStyle;
|
||||
DocStyle myDocStyle = sect.ActiveSection.MyDocStyle;
|
||||
using (Pdf myPdf = Pdf.MakePdf(doc, MSWordToPDF.DebugStatus, (int)myDocStyle.Layout.TopRow, (int)myDocStyle.Layout.PageLength,
|
||||
(int)myDocStyle.Layout.LeftMargin, (int)myDocStyle.Layout.PageWidth, (double)sect.MSWordPageCount, buf)) { ;}
|
||||
doc.UpdateDRoUsages(roids);
|
||||
|
Reference in New Issue
Block a user