BIRT Exchange Forum: Data is cutting in export to PDF - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Data is cutting in export to PDF Data is not wrappiong in Export to PDF Rate Topic: -----

#1 User is offline   bokya Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 73
  • Joined: 19-July 11


Posted 11 June 2012 - 06:05 AM

Hi All,

I have a serious doubt, when i do export to pdf and save pdf then data in the column is getting cut across column line. For example my data in the column is 'EMQLMZ129067553736436433236', this data is displaying properly on Report viewer in single line but problem is in exporting to PDF. I am using " 2.5.1.v20090710-7c957AFOKfquKtWRHVnZG1" this version.

Thanks & Regards
Bokya
0

#2 User is offline   bokya Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 73
  • Joined: 19-July 11


Posted 11 June 2012 - 08:13 PM

Hi All,
Please reply to my post
0

#3 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12969
  • Joined: 16-May 08


Posted 14 June 2012 - 11:17 AM

And you would like it to wrap in PDF output? Or is there enough space for it to list all the way on one line, but it's just getting cut off? Let me know.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#4 User is offline   bokya Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 73
  • Joined: 19-July 11


Posted 17 June 2012 - 11:08 PM

Thanks for replying BIRt Guru,

Yes i want to wrap the text in to PDF output without cutting the data acroos columns. There is no way to wrap wrap in to single line. because if we try to wrap the the text like "7c957AFOKfquKtWRHVnZG1" in to single line then other Neighboring columns are affecting due to this and getting same problem with them also. So its better to take it in next line. But i dont know in export to PDF for dynamic text which is very big without having any space how to take it in next line. Becaus esame text is adjusting on GUI in single line but problem is with Export to pdf only.

Thanks & Regards

Bokya
0

#5 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12969
  • Joined: 16-May 08


Posted 19 June 2012 - 07:43 AM

The PDF won't adjust like the GUI because of the fixed size constraint. To get a long, unbroken string to break, you'll have to add break characters of your own, either in a computed column or using a dynamic text box to write the script to break the long text up. Once you've broken the long text up, it should wrap to multiple lines within your PDF. Let me know if you have questions.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#6 User is offline   bokya Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 73
  • Joined: 19-July 11


Posted 12 July 2012 - 03:36 AM

Hi BIRT Guru,

Can you please tell me where and how to break the string/integer? is there any script i need to write? Please provide me one sample example. and where to put this script and how to apply it to data?

Thanks,
Bokya
0

#7 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12969
  • Joined: 16-May 08


Posted 16 July 2012 - 08:24 PM

You could do something like this, in a computed column, replacing "data1" with your column's name:

temp = "";
i=0;
while (i<row["data1"].length){
if (row["data1"].length - 10 < i){
	temp = temp + row["data1"].substring(i,row["data1"].length);
}
else{
	temp = temp + row["data1"].substring(i,i+10) + "\n";
}
i += 10;
}
temp;


Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#8 User is offline   bokya Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 73
  • Joined: 19-July 11


Posted 03 August 2012 - 01:34 AM

Hi BIRT GURU,

Thanks for valuable reply. Can you please tell me how to apply same script for whole report. I mean to say if my report has 50 columns then i cant write same script every where. Is there any place where i can write same script for all the columns.
0

#9 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12969
  • Joined: 16-May 08


Posted 06 August 2012 - 07:31 AM

You could do a script in your beforeFactory method, stepping through your data elements, changing their expression. The easiest way would be to name your data elements, element1, element2, element2, etc., in the property editor. Then, you can easily access them by name, in your script.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#10 User is offline   CanuckDuck Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 06-March 13


Posted 13 March 2013 - 07:54 AM

View Postmwilliams, on 06 August 2012 - 07:31 AM, said:

You could do a script in your beforeFactory method, stepping through your data elements, changing their expression. The easiest way would be to name your data elements, element1, element2, element2, etc., in the property editor. Then, you can easily access them by name, in your script.


Is there a way to apply this to QBR Reports as well?
0

#11 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12969
  • Joined: 16-May 08


Posted 14 March 2013 - 05:26 AM

I'm not familiar with QBR reports. I'm assuming you're talking about the IBM product rather than a Quarterly Business Report made with any old version of BIRT. Are there any scripting areas available? Do you have access to modify the actual .rptdesign that's created?
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#12 User is offline   CanuckDuck Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 06-March 13


Posted 14 March 2013 - 05:31 AM

View Postmwilliams, on 14 March 2013 - 05:26 AM, said:

I'm not familiar with QBR reports. I'm assuming you're talking about the IBM product rather than a Quarterly Business Report made with any old version of BIRT. Are there any scripting areas available? Do you have access to modify the actual .rptdesign that's created?


Sorry should have been more clear. This is for Maximo quick reports. They are ad hoc reports and unfortunately I don't have access to the rptdesign file until after the reports are saved. Ideally I would like to script something as you say before the report is generated.

I guess this is more of a Maximo Configuration issue than a BIRT one.
0

#13 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12969
  • Joined: 16-May 08


Posted 15 March 2013 - 10:40 AM

Do you have to use Maximo quick reports to create the reports? Have you tried creating them with a separate install of the designer and then loading them to where you need them for use within Maximo?
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#14 User is offline   CanuckDuck Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 06-March 13


Posted 19 March 2013 - 09:21 AM

View Postmwilliams, on 15 March 2013 - 10:40 AM, said:

Do you have to use Maximo quick reports to create the reports? Have you tried creating them with a separate install of the designer and then loading them to where you need them for use within Maximo?


Our users have the ability to use these quick reports and there doesn't seem to be a way to customize the date display (unless saved and updated). All of our other customized reports are fine. It's just these on-the-fly reports. thanks.
0

#15 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12969
  • Joined: 16-May 08


Posted 19 March 2013 - 01:12 PM

Interesting that they wouldn't have implemented a way for you to format the date. You're right, this definitely isn't a BIRT issue. Have you asked over on their support forums?
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users