Jump to content
We've recently updated our Privacy Statement, available here ×

Generating RTF w/ determined width ?


ziden

Recommended Posts

Hallo everyone.

 Ive got a report that is 510 pixels width. Im using the following code to generate an RTF over this report:

       JRRtfExporter exporter = new JRRtfExporter();  
        File rtf = new File( caminho + "Curso.rtf" );
        exporter.setParameter( JRExporterParameter.JASPER_PRINT, jPrint );  
        exporter.setParameter( JRExporterParameter.OUTPUT_FILE, rtf );  
        exporter.setParameter( JRExporterParameter.IGNORE_PAGE_MARGINS, true );  
        exporter.setParameter( JRExporterParameter.OFFSET_X, 0 );  
        exporter.exportReport(); 

 

Now, what happens is, the RTF document have a very smaller width then my report, even having loads of free space to write. So a line that was being something like (a textField)

"hello, this is a bigger line then a normal one"

in RTF comes like

"hello, this is a bigger line
then a normal one"

 

Is there anyway i can make the RTF bigger, so the report would fit perfectly on it ?

Thanx for any help. Regards Ziden.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...