PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MigraDoc FootNotes

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
chuckwagon



Joined: 29 Oct 2008
Posts: 3

PostPosted: Wed Oct 29, 2008 8:07 pm    Post subject: MigraDoc FootNotes Reply with quote

I'm trying to add footnotes to a MigraDoc document but I'm not sure if I'm doing it right since I was unable to find an example.

I'm using something like


Code:
Paragraph paragraph = document.LastSection.AddParagraph();
FootNote fn = paragraph.AddFootnote();
fn.AddParagraph("My footnote text");


also tried

Code:
paragraph.AddFootnote("My footnote text");


but my Footnote never appears.
Am I missing something?
_________________
If hope could grow from dirt like me, it can be done.
Back to top
View user's profile Send private message
gastan



Joined: 18 Oct 2008
Posts: 25

PostPosted: Wed Oct 29, 2008 9:19 pm    Post subject: Reply with quote

there is example in HelloMigraDoc
Back to top
View user's profile Send private message
chuckwagon



Joined: 29 Oct 2008
Posts: 3

PostPosted: Wed Oct 29, 2008 9:34 pm    Post subject: Reply with quote

I saw the example for Footers, but I'm looking for FootNotes.
From what I understand, FootNotes should be able to take care of AutoNumbering whereas Footers don't. ??
_________________
If hope could grow from dirt like me, it can be done.
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Thu Oct 30, 2008 9:40 am    Post subject: Re: MigraDoc FootNotes Reply with quote

Hello!
chuckwagon wrote:
but my Footnote never appears.

Have you tried creating an RTF file?

Maybe footnotes are not implemented in the PDF renderer of MigraDoc Lite.
You can try the following: save the document as an MGDDL file and convert it using the MigraDoc Client as described here:
http://pdfsharp.s3.bizhat.com/viewtopic.php?p=1196#1196

Headers and Footers are fixed text that appears on every page.
Footnotes are annotations that appear once in the document - linked to a place in the text.
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
chuckwagon



Joined: 29 Oct 2008
Posts: 3

PostPosted: Thu Oct 30, 2008 12:16 pm    Post subject: Reply with quote

I'm not creating a file at all. I'm using a DocumentPreview control to show changes that a user makes as they are editing the document.

I run through the routine of adding the sections and paragraphs and footnotes, and then I

Code:
docPreview.Ddl = DdlWriter.WriteToString(document);


everything displays except the footnotes.
_________________
If hope could grow from dirt like me, it can be done.
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Thu Oct 30, 2008 12:30 pm    Post subject: Reply with quote

There is one renderer for XGraphics (used for PDF and Preview) - that's the one where footnotes are not implemented (I put this on our internal bug list but can't say when it'll be implemented).

And there's a renderer for RTF where footnotes seem to be implemented.

As a workaround I'd use AddParagraph instead of AddFootnote (using a style with a different font style/size and/or a different indentation).
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com