Page Num Transition (for grids)
This commit is contained in:
@@ -172,7 +172,19 @@ namespace Volian.Print.Library
|
||||
public string Print(string pdfFolder)
|
||||
{
|
||||
if (_MyItem is ProcedureInfo)
|
||||
return Print(_MyItem as ProcedureInfo, pdfFolder);
|
||||
{
|
||||
if (!_MyItem.ActiveFormat.PlantFormat.FormatData.TransData.UseTransitionModifier)
|
||||
return Print(_MyItem as ProcedureInfo, pdfFolder);
|
||||
else
|
||||
{
|
||||
// if the plant uses transition modifiers and/or page num in transition format,
|
||||
// need to do two passes. First pass, sets the pagenumbers for each item,
|
||||
// 2nd pass fills in the page numbers in transitions.
|
||||
Print(_MyItem as ProcedureInfo, pdfFolder);
|
||||
ProcedureInfo.RefreshPageNumTransitions(_MyItem as ProcedureInfo);
|
||||
return Print(_MyItem as ProcedureInfo, pdfFolder);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
private string BuildMSWordPDF(SectionInfo section)
|
||||
|
@@ -299,6 +299,7 @@ namespace Volian.Print.Library
|
||||
|
||||
public float ParagraphToPdf(PdfContentByte cb, float yPageStart, float yTopMargin, float yBottomMargin)
|
||||
{
|
||||
if (MyItemInfo.PageNumber == 0) MyItemInfo.PageNumber = MyPageHelper.CurrentPageNumber;
|
||||
if (Processed) return yPageStart;
|
||||
//float localYPageStart = yPageStart;
|
||||
Processed = true;
|
||||
|
Reference in New Issue
Block a user