Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IText Problem

 
Bhavesh Thakkar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using itext to display a report in a pdf file for a specific requirement in my project.

Is it possible in Itext to diplay a record in two different lines when we are getting it from a result set.

For example suppose we are getting ten fields in a result set which we are using to generate new coloms in Itext as shown below

Field1 Field2 Field3 Field4 Field5 Field6 Field7 Field8

and now we want to display a data in the follwing manner

Field1 Field2 Field3 Field4 Field5 Field6 Field7 Field8
rs. rs. rs. rs. rs. rs. rs. rs.
get(1) get(2) get(3) get(4) get(5) get(6) get(9) get(10)

rs. rs.
get(7) get(8)

Here my problem is as shown. I want to show the resultSet(7) and resultSet(8) value below the resultSet(5) and result(6) value in a new row.

Can this be achieved using IText.

Thanks in advance!!

Regards,
Bhavesh Thakar
 
Henry Wong
author
Marshal
Pie
Posts: 21514
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, it was me who got rid of your other topic, it looks like a dup of this one.

Anyway, this question may be best answered in the OpenSource forum, where the itext experts hang out. Moving...

Henry
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why should that not be possible? Just lay it out that way. I guess I don't understand what this has to do with iText at all (or, actually, what exactly the problem is).

Or are you referring to the fact that the columns of a ResultSet should be read in numerically ascending order, according to the javadocs? That's more of a theoretical limitation, I don't think there are JDBC drivers that force you to do this.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
Or are you referring to the fact that the columns of a ResultSet should be read in numerically ascending order, according to the javadocs? That's more of a theoretical limitation, I don't think there are JDBC drivers that force you to do this.
I think the JDBC-ODBC bridge driver does. But even so, I don't see that as being any kind of limitation at all. I guess like you I think the answer to the original question is "Yes".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic