PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

AddNumPagesField() incorrect on RTF export but fine on PDF
https://forum.pdfsharp.net/viewtopic.php?f=3&t=2014
Page 1 of 1

Author:  tacoking [ Thu May 10, 2012 6:19 pm ]
Post subject:  AddNumPagesField() incorrect on RTF export but fine on PDF

Migradoc issue. Not sure what can be done about it

Code:
Paragraph pgNumber = section.Footers.Primary.AddParagraph( "Page " );
pgNumber.AddPageField();
pgNumber.AddText( " of " );
pgNumber.AddNumPagesField();


Works fine when rendering out to a PDF, but when rendering out to RTF, the footer shows fine in word, but the first page says "Page 1 of 1" then next page is "Page 2 of 2" and so on, when it should be "Page 1 of 2", etc.

Author:  () => true [ Fri May 11, 2012 7:33 am ]
Post subject:  Re: AddNumPagesField() incorrect on RTF export but fine on P

Could be a Word issue: refresh all fields in Word.
Use Edit => Select All, then press F9.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/