Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi


Im doing code in C# and creating pdf using Itextsharp.
I have created table using pdftable of Itextsharp.
But now I need to place table on different locations(X and Y co-ordinates) on the document. table data is contiued to next pages which I want but cant give exact positions to table in document.
C#
doc.Add(mytab);

and if I have used below code, problem is that table data is showing for only one page, i means just one page is creating in below case.
C#
mytable.WriteSelectedRows(0, -1, PositionX, (doc.PageSize.Height - PositionY), writer.DirectContent);

So how can I set positions to table when im adding it in document.
Please help me.
Posted
Updated 23-Sep-11 2:50am
v3
Comments
DaveAuld 23-Sep-11 8:50am    
Edit, code blocks added.

1 solution

Use the WriteSelectedRows. See this discussion[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900