This is a migrated thread and some comments may be shown as answers.
Data gets eaten off during exporting a report
12 Answers 107 Views
This is a migrated thread and some comments may be shown as answers.
Shalini Vijayakumar
Top achievements
Rank 1
Shalini Vijayakumar asked on 22 Oct 2010, 04:38 PM
Hi,

I have a report created using Telerik reporting tool. It displays fine and exports fine as pdf.
But when i export it to rtf (Rich text File) the generated report have fields eaten off or the field details are not displayed completely.

PFA a screen shot of the same

Please help

--Shalini

12 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 22 Oct 2010, 04:57 PM
Hello Shalini Vijayakumar,

Try changing the RenderingMode device setting to use Frames. You can see a sample code snippet below, place it in your config file, run the application (do not use previews) and see if the problem persists.
Copy Code
<configuration>
  <configSections>
    <section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere" />
  </configSections>
  <Telerik.Reporting>
    <Extensions>
      <Render>
        <Extension name="RTF">
          <Parameters>
            <Parameter name="RenderingMode" value="Frames" />
          </Parameters>
        </Extension>
      </Render>
    </Extensions>
  </Telerik.Reporting>
</configuration>


Regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Shalini Vijayakumar
Top achievements
Rank 1
answered on 26 Oct 2010, 07:58 AM
Hi,

I tried the code snippet suggested by you. But the problem still persists :(
I did copy the above mentioned config section into the app.config of the Report project.

BTW, why is the rendering mode given as Frames??  why do we need frames. Cant the data be written directly into the rtf document during the export??
Please need help again !!!

Thanks
Shalini
0
Steve
Telerik team
answered on 28 Oct 2010, 12:55 PM
Hi Shalini,

What is your application - is it web application/site or windows form application? If it is a web application you should copy the code snippet I provided in its web.config file, if it is windows forms, you should copy it to its app.config. This code snippet should not be in the app.config file of the report class library.
The RenderingMode device setting specifies whether to use Tables or Frames to render the rtf file. The default mode is Auto, which means that If Table/List/Crosstab report item is used in the report, the mode automatically changes to Tables, if not it uses Frames.

Greetings,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Shalini Vijayakumar
Top achievements
Rank 1
answered on 03 Nov 2010, 11:16 AM
Hi Steve,

Its a Windows application. As u guided me i had included the piece of code in the app.config file of the windows application not in the Report library application.

Unfortunately the problem still persists :( Either the data is eaten off or the complete details are not shown. If i extent the frames in the rtf file (after exporting) there are details within it..

Please help me out
I will not be able to release it to the customer in this condition :(

thanks in advance
Shalini
0
Steve
Telerik team
answered on 05 Nov 2010, 09:21 AM
Hi Shalini Vijayakumar,

I was not able to reproduce the problem on my end, once I've implemented the solution I've suggested. Please find attached a sample project which contains the configuration set as Frames - export the report and you will see that the whole content is there. Now change the RenderingMode to Auto or Tables and you would notice that some of the data is missing just like in your scenario.

All the best,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Manoj Sharma*
Top achievements
Rank 1
answered on 08 Jul 2011, 01:39 PM

Hi, There seem to be an issue with rtf export when exporting report with tables.

1)  Create a simple report having table and export as rtf and it'll have double borders on the right.

2) The data eating issues seems to be due to padding, if you add 0.5cm of top and bottom cell padding then rtf export will eat some of the table at the bottom.

(Similar issues with panel control it eats data- i guess due to padding)

0
Mark
Top achievements
Rank 1
answered on 24 Apr 2012, 09:13 PM
I'm experiencing the same problem with data in my RTF report being clipped.

I've modified my config as suggested, and saw no improvement.
So I changed my code to this (which I believe should do the same thing)

                        Hashtable ht = new Hashtable();
                        ht.Add("RenderingMode""Frames");
                        result = reportProcessor.RenderReport(_format, _quickReportAll, ht);

I'm still seeing data towards the end of records being clipped.

Help would be appreciated!
Thanks
Mark
0
Steve
Telerik team
answered on 27 Apr 2012, 03:30 PM
Hi Mark,

Our recommendation is to use the export to Word instead as it is a new format that is still developed unlike RTF which has quite a few limitations. If your users have older MS Office versions, you can ask them to install the Microsoft Office Compatibility Pack for Word which is provided for free from MicroSoft and explain them the benefits of using a newer/better format.

All the best,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Mark
Top achievements
Rank 1
answered on 27 Apr 2012, 06:51 PM
Thanks!
0
mark
Top achievements
Rank 1
answered on 01 May 2012, 07:23 PM
I'm now trying this in Word format.

I am getting the following exception:

Telerik.Reporting.Processing.RendererNotAvailableException was caught
  Message=DOCX rendering format is not available.
  Source=Telerik.Reporting
  StackTrace:
       at Telerik.Reporting.Processing.ReportProcessor.GetExtensionInfo(String format)
       at Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
       at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
       at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
       at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo)
       at Reports.ViewModels.ReportOptionsViewModel.TelerikReportRenderer.RenderReport() in E:\tip\world\MPE\MPE.WPF\Reports\ViewModels\ReportOptionsViewModel.cs:line 827
  InnerException:

DOCX is the correct format to use, right?
Also, I made sure that the Telerik.Reporting.OpenXmlRendering.DLL was in the folder where my app runs.

0
mark
Top achievements
Rank 1
answered on 01 May 2012, 09:13 PM
Whoops! I found elsewhere on the forums the OTHER dll I need from the Microsoft SDK, and that has fixed me up. Thanks!
0
Kundan
Top achievements
Rank 1
answered on 19 May 2016, 05:06 AM

Thank you. 

Really very helpful. Save my time.

Asked by
Shalini Vijayakumar
Top achievements
Rank 1
Answers by
Steve
Telerik team
Shalini Vijayakumar
Top achievements
Rank 1
Manoj Sharma*
Top achievements
Rank 1
Mark
Top achievements
Rank 1
mark
Top achievements
Rank 1
Kundan
Top achievements
Rank 1
Share this question
or