This is a migrated thread and some comments may be shown as answers.

"word-wrap:break-word" does'n work at ExportToPDF

4 Answers 184 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeongmo Koo
Top achievements
Rank 1
Jeongmo Koo asked on 27 Feb 2012, 07:23 PM
Hi
My problem with ExportToPDF is that columns is being overlapped when not wide enough to display text.
So I'm trying to use "word-wrap:break-word". It works fine at grid control and IE displays all of text.
But It doesn't work if it is exported to a PDF. It doesn't break word at all in pdf output.
In PDF output, is there any way to display all text by extending height of row?
I don't want text to be truncated.

Thanks 

4 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 29 Feb 2012, 08:33 PM
Jeongmo:

There are some possible solutions for your issue in the Formatting the Grid export to PDF forum thread.

As noted, in this thread, the default export of PDF is "Portrait" orientation, but you can force it to use "Landscape" orientation which would help to avoid column overlapping.

Something like:

RadGrid1.ExportSettings.Pdf.PageHeight = Unit.Parse( "162mm" );
RadGrid1.ExportSettings.Pdf.PageWidth = Unit.Parse( "600mm" );

This would basically force the PDF file export to use the landscape orientation.

Hope this helps!
0
Jeongmo Koo
Top achievements
Rank 1
answered on 29 Feb 2012, 08:44 PM
Thanks for the anwser.
I'm already trying to change paper size, orientation and font size to avoid this issue.
These are helpful but it's not enough.
Is it impossible to break long word without space?
0
Govindaraj Kathirvel
Top achievements
Rank 1
answered on 23 Aug 2012, 04:45 PM
We are also facing the issue. Any solution/workaround?
Thanks
0
Daniel
Telerik team
answered on 28 Aug 2012, 12:15 PM
Hello Govindaraj,

The workaround would be to use empty spaces. Alternatively you could use one or more of the following general suggestions:
- switch the orientation to landscape
- resize the columns according to the expected content length
- reduce the font size
- use narrower fonts
- decrease the page margins
- increase the page size

Best regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Jeongmo Koo
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Jeongmo Koo
Top achievements
Rank 1
Govindaraj Kathirvel
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or