I am creating an auto-generated report using Epplus and converting it to PDF using Spire.XLS. The footer is set to
- Code: Select all
"&P-1 of &N-1"
My problem is that when converting to PDF with Spire the "-" sign is interpreted as a plus (+). So instead of having "1 of 5" I get "3 of 7". I tried using Aspose.Cells and that interpreted it right and I got what I wanted but I do not have a Licence for it so I get an ugly watermark. I would like to avoid turning to Aspose when I already have a Spire licence.
I could probably calculate the page numbers myself but it would be a big workaround for something that should already work. I can't count only the sheets either because some sheets have more than one page.
Am I doing something wrong or is this a bug?