PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Page Numbering https://forum.pdfsharp.net/viewtopic.php?f=2&t=1195 |
Page 1 of 1 |
Author: | DaveR [ Wed May 26, 2010 10:07 am ] |
Post subject: | Page Numbering |
Hi, I'm a newbie to MigraDoc. How do you keep the page numbers sequential from one section to the next. I'm getting them restarting to 1 for each section. thanks Dave |
Author: | Thomas Hoevel [ Wed May 26, 2010 11:02 am ] |
Post subject: | Re: Page Numbering |
DaveR wrote: How do you keep the page numbers sequential from one section to the next. That's the default behaviour if you do nothing. If you set the starting page number of a new section to 1, it will start at 1 again. Don't use code like this: Code: section.PageSetup.StartingNumber = 1;
|
Author: | DaveR [ Wed May 26, 2010 11:04 am ] |
Post subject: | Re: Page Numbering |
I only set the starting page number to 1 for the first section. I don't set it for following sections but they still start again at 1. |
Author: | Thomas Hoevel [ Wed May 26, 2010 11:12 am ] |
Post subject: | Re: Page Numbering |
In our application we never set the starting page - and it works as intended. Why set the starting page to 1 if that's the default? Do all your sections share the same PageSetup? Maybe that's the problem. |
Author: | DaveR [ Wed May 26, 2010 11:18 am ] |
Post subject: | Re: Page Numbering |
I don't want page numbering for the cover or the table of contents so I set startpage=1 for the next section i.e. the first actual page of content but the 3rd pysical page. I then use new sections after that because I want to have different headings for each section. |
Author: | Thomas Hoevel [ Wed May 26, 2010 11:34 am ] |
Post subject: | Re: Page Numbering |
Use the PageSetup with "StartingNumber = 1" only for the section that shall have page number 1. Use another PageSetup that doesn't set StartingNumber for the following section(s). |
Author: | DaveR [ Wed May 26, 2010 11:47 am ] |
Post subject: | Re: Page Numbering |
That fixed it. Many thanks for your help. Dave |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |