aspose file tools*
The moose likes Other Open Source Projects and the fly likes IText Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "IText Problem" Watch "IText Problem" New topic
Author

IText Problem

Bhavesh Thakkar
Greenhorn

Joined: Mar 04, 2007
Posts: 21
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
Sheriff

Joined: Sep 28, 2004
Posts: 18117
    
  39

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18135
    
    8

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".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IText Problem
 
Similar Threads
Using ResultSet
CSV file structure Validation
ResultSet multiple line query exception
Creating JPanel
Please help with GUI