Replace ‘?’ with ‘_’ for pdf filename so file can be created

Allow for setting of section’s ‘Default Step Section’ property
Fix page numbering for {secondary page} page list token
This commit is contained in:
2015-02-09 14:05:22 +00:00
parent e0cd24b61d
commit 0e9302f206
4 changed files with 260 additions and 206 deletions

View File

@@ -952,7 +952,7 @@ namespace Volian.Print.Library
//}
if (args.MyText.Contains("{SECONDARYPAGE}") || args.MyText.Contains("{SECONDARYOF}"))
{
string key = "SecondaryPage." + MySection.ItemID;
string key = "SecondaryPage." + MySection.DisplayNumber;
string txt = args.MyText.Replace("{SECONDARYPAGE}", "{PAGE}").Replace("{SECONDARYOF}", "{OF}");
MyPdfContentByte.AddTemplate(MyPageCounts.AddToTemplateList(key, MyPdfWriter, txt, args.MySvgText.Font, args.MySvgText.Align, args.MySvgText.FillColor), args.MySvgScale.X(args.MySvgText.X), args.MySvgScale.Y(MyPdfContentByte, args.MySvgText.Y));
return string.Empty;