473,395 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

itext table spares page with a gap

m6s
55
Good morning. I have a major issue with iText. Major but most of all ridiculous.
After the cration of a table like that
Expand|Select|Wrap|Line Numbers
  1. tbl = new Table(7, dataTbl.Rows.Count);
  2.                     tbl.setBorderColor(System.Drawing.Color.LightGray);
  3.                     tbl.setDefaultCellBorderColor(System.Drawing.Color.LightGray);
  4.                     tbl.setAlignment(Element.__Value.ALIGN_CENTER);
  5.                     tbl.setPadding(2);
  6.                     tbl.setWidth(( w - 495 ));
  7.  
I pass in the data from a DataTable
Expand|Select|Wrap|Line Numbers
  1. foreach ( DataRow row in dataTbl.Rows ) {....}
  2.  
And then I do
Expand|Select|Wrap|Line Numbers
  1. printout.document.add(tbl);
  2. pr = new Paragraph("SignDate" + SignDate, new com.xxxx);
  3. printout.document.add(pr);
  4. printout.document.getPageNumber();
  5. printout.close();
  6.  
The problem now is that when the foreach loop, consumes more than one page, the later information of Signing the document or other text attributes, go after a half of a page, which this half...is a gap. I have no clue, why...I can't understand from the tutorials if I have missed, and in the end perhaps what to notice. As there is no drawing capability to see where really a footer, a header, a table stops.And why I have this bizzare gap and spare of a page.
Has anyone confronted this situation ?
Apr 8 '09 #1
2 2200
Frinavale
9,735 Expert Mod 8TB
What language are you implementing your solution in?
Java?
Apr 8 '09 #2
m6s
55
I am developing it in .net , with C sharp (who has constrained 20 words per reply )!!!!!
Apr 8 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: bearclaws | last post by:
I am looping through a list of categories and want to display the list horizontally (instead of vertically). I want to create a single row with 4 list items in each cell of the row. I thought...
0
by: Nicolas Guilhot | last post by:
Hi all ! I have a multi-page Tiff image file that I want to convert to PDF. To do so I am using iText library. The conversion is working, but the code execution is very different according to...
4
by: Elhanan | last post by:
hi.. i'm looking into ways for generating pdf's from xml, at first i thought fo / fop looks nice enough i mean it's standard, it's free and sperates concers, but i'm worried about fop from...
1
by: Beeker | last post by:
I have a table called 'RawData' that collects production data. We run a report on this data everyday to see the performance of each employee. I have another table called 'tblStandards' with...
0
by: Nandhu | last post by:
Hello Sir/Madam, Computer spares price list on internet for free... visit : http://www.geocities.com/pricelist.741in click : price list link
0
by: pkombli | last post by:
hi to every one . . i m using itext to create pdf files but m not getting how to connect database to create pdf using itext. .so plz help me
2
by: Toni Pohl | last post by:
Hi, some years ago I´ve implemented an classic ASP form which fills in data from a database into a PD-form. I used the free FDF Toolkit which worked very well. After submitting the PDF the...
2
by: ksrashmi | last post by:
Hi I am genrating the pdf using itext . i need to display the fck editor content in the pdf . this is stored as blob in the database , we need to display same content...
3
dmjpro
by: dmjpro | last post by:
I think iText commonly used to create or manipulate PDF document in Java. So finally i decided to throw a question over here. For two days i am struggling. I encountered two types of table .....
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.