View previous topic :: View next topic |
Author |
Message |
PeterMueller
Joined: 04 Dec 2008 Posts: 4
|
Posted: Wed Dec 10, 2008 10:29 am Post subject: MigraDocLite - Header with table? |
|
|
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! |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Wed Dec 10, 2008 1:41 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
|