This is a migrated thread and some comments may be shown as answers.

Hide a column when exporting to pdf

3 Answers 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bi Chao
Top achievements
Rank 1
Bi Chao asked on 01 Apr 2011, 08:05 AM
Hi,

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

Sort by
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
0
Bi Chao
Top achievements
Rank 1
answered on 07 Apr 2011, 08:15 AM
Hi Steve,

Thanks for your response! 

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?


Regards
Bill
0
Steve
Telerik team
answered on 07 Apr 2011, 08:23 AM
Hi Bi Chao,

As the Silverlight Report Viewer is a template, you can easily modify it according to your needs, for more information please refer to: Creating Style in Expression Blend.

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
Tags
General Discussions
Asked by
Bi Chao
Top achievements
Rank 1
Answers by
Steve
Telerik team
Bi Chao
Top achievements
Rank 1
Share this question
or