Data gets eaten off during exporting a report

13 posts, 0 answers
  1. Shalini Vijayakumar
    Shalini Vijayakumar avatar
    6 posts
    Member since:
    Dec 2009

    Posted 22 Oct 2010 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 22 Oct 2010 Link to this post

    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
  3. DevCraft banner
  4. Shalini Vijayakumar
    Shalini Vijayakumar avatar
    6 posts
    Member since:
    Dec 2009

    Posted 26 Oct 2010 Link to this post

    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
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 28 Oct 2010 Link to this post

    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
  6. Shalini Vijayakumar
    Shalini Vijayakumar avatar
    6 posts
    Member since:
    Dec 2009

    Posted 03 Nov 2010 Link to this post

    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
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 05 Nov 2010 Link to this post

    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
  8. Manoj Sharma*
    Manoj Sharma* avatar
    8 posts
    Member since:
    Jun 2009

    Posted 08 Jul 2011 Link to this post

    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)

  9. Mark
    Mark avatar
    9 posts
    Member since:
    Mar 2011

    Posted 24 Apr 2012 Link to this post

    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
  10. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 27 Apr 2012 Link to this post

    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 >

  11. Mark
    Mark avatar
    9 posts
    Member since:
    Mar 2011

    Posted 27 Apr 2012 Link to this post

    Thanks!
  12. mark
    mark avatar
    6 posts
    Member since:
    Mar 2011

    Posted 01 May 2012 Link to this post

    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.

  13. mark
    mark avatar
    6 posts
    Member since:
    Mar 2011

    Posted 01 May 2012 Link to this post

    Whoops! I found elsewhere on the forums the OTHER dll I need from the Microsoft SDK, and that has fixed me up. Thanks!
  14. Kundan
    Kundan avatar
    1 posts
    Member since:
    May 2012

    Posted 19 May in reply to Steve Link to this post

    Thank you. 

    Really very helpful. Save my time.

Back to Top
DevCraft banner