Fix page number transition if on first page
This commit is contained in:
@@ -850,7 +850,7 @@ namespace Volian.Print.Library
|
||||
}
|
||||
public void CreateWordDocPdf(PdfContentByte cb, SectionInfo mySection)
|
||||
{
|
||||
if (mySection.PageNumber == 0) // If page num transition goes to a section, need the pagenumber of section.
|
||||
if (mySection.PageNumber == -1) // If page num transition goes to a section, need the pagenumber of section.
|
||||
mySection.PageNumber = _MyHelper.CurrentPageNumber;
|
||||
int profileDepth = ProfileTimer.Push(">>>> CreateWordDocPdf");
|
||||
_MyHelper.MySection = mySection;
|
||||
|
@@ -467,7 +467,7 @@ namespace Volian.Print.Library
|
||||
pagenumTran = MyPageHelper.CurrentPageNumberNoFoldouts;
|
||||
else
|
||||
pagenumTran = MyPageHelper.CurrentPageNumber;
|
||||
if (MyItemInfo.PageNumber == 0) MyItemInfo.PageNumber = pagenumTran;
|
||||
if (MyItemInfo.PageNumber == -1) MyItemInfo.PageNumber = pagenumTran;
|
||||
else if (MyItemInfo.PageNumberUsed != 0 && MyItemInfo.PageNumberUsed != pagenumTran)
|
||||
{
|
||||
if (PromsPrinter.TransPageNumProblems == null) PromsPrinter.TransPageNumProblems = new List<string>();
|
||||
|
Reference in New Issue
Block a user