Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Problem with printing a Gantt chart

2909204Aug 12 2015 — edited Aug 17 2015

I'm using JDev 12.1.3.0.0

I follow this article https://docs.oracle.com/middleware/1213/adf/develop-faces/dvt-gantt-charts.htm#ADFUI542 (Section 26.5.4) to print the gantt chart. When I click the printer icon, the gantt chart is exported to a PDF file. But the employee column's value is not displayed (it should be the name of employee) (please see the image below).

1547-pdf-1.PNG

Then I tried to change the width of that column but it isn't displayed anymore.

1547-pdf-2.PNG

Any ideas is appreciate ? Thanks in advance.

Comments

807603
Open a FileOutputStream then read the InputStream a buffer at a time and write to the FileOutputStream.

P.S. Class java.io.File represents a handle on the file and not the content of the file.

Edited by: sabre150 on Jan 28, 2008 2:22 PM
807603
Hi,
Sorry for not presenting my problem correctly.
What i need is a File object handler for a file in the classpath if the name of the file present in the classpath is given.
( I was able to get the content of the file using classloader, but i actually need a handle to the file itself.)
807603
Use getResource() instead of getResourceAsStream(). This way you get an URI which you can use in the constructor of java.io.File.
807603
Hi thanks !
I was able to get URL by that method, and I now use
File f = new File(url.toString) 
and it works !

I had one more concern, will the above case fail in any situation ?
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 14 2015
Added on Aug 12 2015
3 comments
258 views