Reduce Export Options

9 posts, 0 answers
  1. JK
    JK avatar
    123 posts
    Member since:
    Sep 2007

    Posted 14 May 2008 Link to this post

    Hi,

    Can you reduce the export options?  I.e. I only wnat PDF on the dropdownlist, thus removing/hiding the other options of "Tiff", "Rich Text","excel" etc..

    Updated : From what I have found it appears that you can configure this on the webconfig, but this restricts all reports, can this not be done on the reportviewer itself?

    thanks,

    JK
  2. Milen
    Admin
    Milen avatar
    180 posts

    Posted 14 May 2008 Link to this post

    Hello JK,

    Yes, you are able to hide one or more extensions from the viewers using the Telerik Reporting configuration. It is done in the configuration file of the application. The settings are applied to all report viewers in your application, and this is by design.

    You can find more information in the help article Configuring Telerik Reporting.

    If you need to allow different export formats in different situations and want to deny all other formats, what you can do is hide the export button on the report viewer and to provide your custom interface (button for example) and to export the report to the desired format programmatically.

    You may find useful the following KB article: Saving a report into PDF format programmatically.

    Greetings,
    Milen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. JK
    JK avatar
    123 posts
    Member since:
    Sep 2007

    Posted 15 May 2008 Link to this post

    Hi,

    refering to your second point (export programatically) I appreciate that you have to use the following declarations:

    using

    System.IO;

    using

    Telerik.Reporting.Processing;

    but the part I am stuck on is it errors on the Encoding command, what else do I need to add to the classes?

    also, when the  "SaveReport" function is working, as the report in question is already being displayed in the reportviewer (same page), how do I refer to the report currently being displayed in the reportviewer rather than calling a new version of the report?

    thanks,

  4. Milen
    Admin
    Milen avatar
    180 posts

    Posted 16 May 2008 Link to this post

    Hi JK,

    The purpose of the out parameter encoding is to give you the Encoding used in the return array of bytes, in case you need it. So you do not have to instantiate the encoding parameter before passing it to the render method or do any extra work with it. Just declare a variable encoding and pass it.

    About the second question. Yes, you can use the instance of the report already in use of the report viewer. Use:

    SaveReport(this.reportViewer1.Report, @"C:\MyReport.pdf"); 

    I hope this information helps.

    Regards,
    Milen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. James Strope
    James Strope avatar
    19 posts
    Member since:
    Mar 2009

    Posted 11 Mar 2010 Link to this post

    Hello,

    I noticed the link to "Configuring Telerik Reporting?" was not valid.  Here is the valid link:
    http://www.telerik.com/help/reporting/configuring-telerik-reporting.html

    Also, this link was very helpful in explaining more...
    http://www.telerik.com/support/kb/reporting/report-viewers/limit-export-options-in-reportviewer-to-certain-format-only.aspx
  6. Farouk
    Farouk avatar
    24 posts
    Member since:
    Jun 2012

    Posted 25 Mar 2010 Link to this post

    hi,

    i have the problem, that my reports should offer different export types.. so i would need an option to change the export types per report, not for all...

    will there be an option in further future releases?

    kind regards
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Mar 2010 Link to this post

    Hello Basti,

    Yes, we have this functionality logged in our features list and would consider including it in subsequent version of the product. Once we do, it would be listed in the Telerik Reporting RoadMap.

    Kind regards,
    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.
  8. Phisca Aditya
    Phisca Aditya avatar
    2 posts
    Member since:
    Oct 2014

    Posted 08 Oct 2014 Link to this post

    Dear admin, i want to ask, last day i reduced extention for export document in telerik, i reduce doc, xls, etc. include .tif extention. but when i run my program, option .tif still exist in the program. can you help me about that?

    thanks you very much for your help.

    Sincerely

    Phisca
  9. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 10 Oct 2014 Link to this post

    Hello Phisca,

    You will need to hide the IMAGE rendering extension to remove the Tiff export option. The full list of available rendering formats is available in the Rendering Extensions article.


    I hope the above information helps you.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top