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

URGENT: text preview is not getting properly


kunkasurendra

Recommended Posts

Hi,

 

I am trying to generate the text preview,but all the data is comming in the same line.

 

Please tell me,is there any settings for generating the text preview?

 

PDF is generating fine.

 

1) If I am using the Text Preview (iReport),It's not giving the proper allignment.

 

2) If i am using the Text Preview(JR),it's giving the error like

 

Error exporting print... Character or page width must be specified

 

Please can any one help me.

 

 

Thanks in advance,

surendra

Link to comment
Share on other sites

  • 3 years later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Do you have any solution for the problem that I'm encountering whenever I'm generating report to a text file.

I'm using PHP and calling jasper to generate text file report.Error:  net.sf.jasperreports.engine.JRException: Character or page width must be specified

I think its in the iReport issue. What actions I can do to make it resolved?

 

Thanks in Advance,

Bern

Code:


			
		
Link to comment
Share on other sites

  • 1 year later...

 

I have found the solution for this issue. When we use the Text Preview we should set few more parameters to make it work.

Go to Tools-->Options

Select Export Options tab --> Select Text from left pane

Set values for Character Width, Character Height, (The values I have set 7 and 13.9) Page width and Height. 

Now try generating the report and it will work. Try setting different values to make it fit properly.

The only ISSUE i have now is - it inserts BLANK LINES when there are page breaks. TRYING TO AVOID THOSE BLANK LINES.

Hope this helps and if anyone finds the solution for page break blank lines, let me know.

 
Link to comment
Share on other sites

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...