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
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.
<
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
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
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
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
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
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)
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
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 >
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.
Thank you.
Really very helpful. Save my time.