PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 9:05 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu May 10, 2012 6:19 pm 
Offline

Joined: Thu May 10, 2012 6:14 pm
Posts: 1
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.


Top
 Profile  
Reply with quote  
PostPosted: Fri May 11, 2012 7:33 am 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 339
Could be a Word issue: refresh all fields in Word.
Use Edit => Select All, then press F9.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 47 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group