PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 5:12 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: Wed Dec 10, 2008 10:29 am 
Offline

Joined: Thu Dec 04, 2008 11:14 am
Posts: 4
Hello,

I want to add a table with two columns to my header. How can i do this?

Here is my
Code:
Paragraph paragraphHeader = new Paragraph();
HeaderFooter header = section.Headers.Primary;
header.AddTable(table); // The AddTable()-method does not accept any parameter


Is there any trick? Any suggestions are welcome!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 10, 2008 1:41 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
IIRC the AddTable method returns a newly created table.
Use Add(table) if you already have the table.
Use Clone() if you want to use the same table more than once.
Code:
Paragraph paragraphHeader = new Paragraph();
HeaderFooter header = section.Headers.Primary;
Table table = header.AddTable();

_________________
Regards
Thomas Hoevel
PDFsharp Team


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 391 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:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group