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

Using custom parameters for rendering extension

3 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 17 Aug 2015, 06:03 PM

I've successfully put together a custom extension by using IRenderingExtension and I'm able to choose the option from the dropdown, select export, and get results in a format that I need. I've added parameters to the new extension in the web config, but I can't find them when I debug. They don't seem to be within the report, renderingcontext, or deviceinfo variables. I even just tested out with simple names and values such as "test". Is there something I'm missing?

 

Thanks,

Chuck

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 Aug 2015, 08:21 AM
Hello Charles,

Have you added the appropriate ExtensionParameter attribute to your renderer class that implements IRenderingExtension.

Here is an example:
[ExtensionParameter(ImageReport.OutputFormat, typeof(string), "TIFF")] // Values: BMP, EMF, EMFPLUS, GIF, JPEG, PNG, TIFF, PDF
[ExtensionParameter(ImageReport.TiffCompression, typeof(string), "")]
public class MyRender : IRenderingExtension
{
.....

We will appreciate if you elaborate on your scenario and what kind rendering extension you had to implement.

Regards,
Peter
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Charles
Top achievements
Rank 1
answered on 19 Aug 2015, 11:17 AM
Thanks for getting back to me, Peter. I'm going to be customizing the output into a CSV format. What ​is the namespace for the ImageReport class that you're referring to?
0
Nasko
Telerik team
answered on 24 Aug 2015, 07:11 AM
Hello Charles,

The fully-qualified name of the class is Telerik.Reporting.ImageRendering.ImageReport.

I hope this helps.

Regards,
Nasko
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Charles
Top achievements
Rank 1
Answers by
Peter
Telerik team
Charles
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or