Is there a way that I can hide a column of a certain table when exporting to pdf?
Im using Q1 with silverlightviewer, so I need the report to be generated while I click the pdf in silverlight viewer.
Regards
Bill
3 Answers, 1 is accepted
0
Steve
Telerik team
answered on 07 Apr 2011, 08:08 AM
Hi Bi Chao,
Currently there is no easy and straight-forward way to know whether the report is being rendered in XAML (the Silverlight ReportViewer) or in PDF (or any other format) for example. We already have some ideas how we can extend the reporting engine in this direction, thus allowing the report developers to know the exact format the report is being rendered to and would work in this direction for subsequent versions of the product.
For the time being, you can modify the report viewer template, hide the export combo and provide your own UI to handle the export. This way when a user selects PDF, you can do the necessary changes to the report or simply export a previously prepared report without the column in question.
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
I think the workaround you provided you provided is a good solution.
There is only one point I don't know how to do it - How can i hide the export combo? Is there a option or attribute I can set for the silverlight viewer?
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