
                                            Jeongmo Koo
                                            
                                    
    Top achievements
    
            
                 Rank 1
                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
                                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
0
                                
                                                    Richard
                                                    
                                            
    Top achievements
    
            
                 Rank 1
                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!
                                        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
                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?
                                        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
                Rank 1
            
    
                                                
                                                answered on 23 Aug 2012, 04:45 PM
                                            
                                        We are also facing the issue. Any solution/workaround?
Thanks
                                        Thanks
0
                                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
                                        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.