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

Reporting toolbar

5 Answers 199 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Graham O'Riley
Top achievements
Rank 1
Graham O'Riley asked on 30 Jul 2008, 10:43 AM
Hi,

I know currently you can currently programmatically call export functions etc.

I was wondering if in future versions you were going to allow a developer to programatically modify the functions available within the built in reporting toolbar.

Regards,

Graham O'Riley
Netdocs Plc

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Jul 2008, 10:53 AM
Hello Graham,

Can you elaborate on your request? What is it exactly what you are trying to achieve and are you using the web or win report viewer?

Kind regards,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Graham O'Riley
Top achievements
Rank 1
answered on 30 Jul 2008, 10:59 AM
Hi,

I am using the web report viewer.

The toolbar allows a report to be exported.

I was wondering if I can change the export options to only pdf.

Regards,

Graham O'Riley
Netdocs Plc
0
Accepted
Steve
Telerik team
answered on 30 Jul 2008, 11:36 AM
Hello Graham,

You can achieve that through the rendering extensions we've introduced - more info available here.
For your scenario in order to allow only pdf as export option, you would have to hide all the others:

  <Telerik.Reporting>
      <Extensions> 
          <Render>
            <Extension name="IMAGE" visible="false"></Extension>
            <Extension name="HTML" visible="false"></Extension>
            <Extension name="MHTML" visible="false"></Extension>
            <Extension name="XLS" visible="false"></Extension>
            <Extension name="CSV" visible="false"></Extension>
            <Extension name="PDF" visible="true"></Extension>
          </Render>
      </Extensions>
  </Telerik.Reporting>

Hope this helps.

Best wishes,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Graham O'Riley
Top achievements
Rank 1
answered on 30 Jul 2008, 12:24 PM
Hi,

That looks good.

I've added the xml to my web.config but it will not debug (start) therefore
I assume I have placed the xml in the wrong section.
It current is:

<

configSections>

<

Telerik.Reporting>
<
Extensions>
<
Render>
    <
Extension name="IMAGE" visible="false"></Extension>
    <
Extension name="HTML" visible="false"></Extension>
    <
Extension name="MHTML" visible="false"></Extension>
    <
Extension name="XLS" visible="false"></Extension>
    <
Extension name="CSV" visible="false"></Extension>
    <
Extension name="PDF" visible="true"></Extension>
</
Render>
</
Extensions>
</
Telerik.Reporting>
</
configSections>

<
system.web>


also tried:

<

configSections>

<

section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting.Processing, Version=2.8.8.723, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere"/>

<

Telerik.Reporting>

<

Extensions>

<

Render>

<

Extension name="IMAGE" visible="false"></Extension>

<

Extension name="HTML" visible="false"></Extension>

<

Extension name="MHTML" visible="false"></Extension>

<

Extension name="XLS" visible="false"></Extension>

<

Extension name="CSV" visible="false"></Extension>

<

Extension name="PDF" visible="true"></Extension>

</

Render>

</

Extensions>

</

Telerik.Reporting>

</

configSections>

<

system.web>

Thanks for the help.

0
Graham O'Riley
Top achievements
Rank 1
answered on 30 Jul 2008, 12:28 PM
Ok, now figured out how to use the web.config settings:

<

configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<

configSections>

<

section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting.Processing, Version=2.8.8.723, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"

allowLocation="true" allowDefinition="Everywhere"/>

 

</

configSections>

<

Telerik.Reporting>

<

Extensions>

<

Render>

<

Extension name="IMAGE" visible="false"></Extension>

<

Extension name="HTML" visible="false"></Extension>

<

Extension name="MHTML" visible="false"></Extension>

<

Extension name="XLS" visible="false"></Extension>

<

Extension name="CSV" visible="false"></Extension>

<

Extension name="PDF" visible="true"></Extension>

</

Render>

</

Extensions>

</

Telerik.Reporting>

<

system.web>
....

Many thanks Steve for the help.

Tags
General Discussions
Asked by
Graham O'Riley
Top achievements
Rank 1
Answers by
Steve
Telerik team
Graham O'Riley
Top achievements
Rank 1
Share this question
or