Restrict Export Type to .Pdf

42 posts, 1 answers
  1. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 23 Apr 2012 Link to this post

    Hi Shahzada,

    Judging by your screenshot, the only export format that should not show is the XPS. If you have verified that there is no Telerik.Reporting.XpsRendering.dll assembly in the bin folder of your application, make sure this assembly is not added to the GAC of your server. If so, please remove it as it is not necessary to add reporting assemblies to GAC. Your other option would be to explicitly hide it:

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

    I've attached a sample project that works as expected. Compare both and make the necessary changes.

    Greetings,
    Steve
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

  2. Shahzada
    Shahzada avatar
    22 posts
    Member since:
    Jan 2012

    Posted 24 Apr 2012 Link to this post

    thanks for your response;

    its working fine on local machine but same error on remote server when publish over iis 7

    error file attached.
  3. DevCraft banner
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 24 Apr 2012 Link to this post

    Hi Shahzada,

    We've already provided explanation about this error in your previous post and you have not answered our questions whether you have these assemblies in bin and/or in GAC of your server. Without providing us with your project and screenshots of your bin folder and GAC of your server, we would not be able to help further.

    Kind regards,
    Steve
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

  5. Shahzada
    Shahzada avatar
    22 posts
    Member since:
    Jan 2012

    Posted 24 Apr 2012 Link to this post

    here is screen shot of bin folder for the project you sent me and i publish it over server and having error (previous post attachment).

    there is no any telerik related dll in GAC. because we have not installed telerik over server and we would not like to do that. just copy the dll in folder and add reference of these telerik dlls from that folder.
  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 24 Apr 2012 Link to this post

    Hello Shahzada,

    Remove the following from the web.config of the project we've send you:

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

    Kind regards,
    Steve
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

  7. Shahzada
    Shahzada avatar
    22 posts
    Member since:
    Jan 2012

    Posted 24 Apr 2012 Link to this post

    I have remove it from web.config.
    Its working fine on my staging server and xps is not showing in export options DDL.
    But on my development machine this xps option is being displayed in export options DDL.

    I am doing following, according to my understanding based on your previous posts.

    Add reference for "Telerik.Reporting.XpsRendering.dll" in my project.

    and added
    <Extension name="XPS" visible="false">
    </Extension>
    in web.config

    and its working fine for both on local machine and staging server.

    thankyou so much.
  8. Shahzada
    Shahzada avatar
    22 posts
    Member since:
    Jan 2012

    Posted 04 Jul 2012 Link to this post

    how i remove my last attached screen in this forum??
  9. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 04 Jul 2012 Link to this post

    Hello Shahzada,

    You have quite a few attached screenshots in this forum, all of them do not show any personal information, so is there any reason why they should be deleted? Which image do you refer to?

    Greetings,
    Steve
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

  10. Shahzada
    Shahzada avatar
    22 posts
    Member since:
    Jan 2012

    Posted 04 Jul 2012 Link to this post

     in my post 
    Posted on Apr 24, 2012 


    Attached files
    • error.PNG

    this image contains IP info; i want to remove now;
  11. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 04 Jul 2012 Link to this post

    Hello,

    As requested, the error.png image was deleted.

    All the best,
    Rumen
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

  12. Murali
    Murali avatar
    5 posts
    Member since:
    Oct 2013

    Posted 03 Oct 2013 Link to this post

    Hello,

    How can I restrict .PDF option for only one report.

    For one report all other options should be there except pdf and for other reports all options should be there.

    Thanks
  13. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 08 Oct 2013 Link to this post

    Hi Murali,

    Please take a look at the answer in the following forum thread: Restrict export type options

    Regards,
    Stef
    Telerik

    Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Back to Top
DevCraft banner