none
HowTo set suggested/default name for PDF export? RRS feed

  • Question

  • This is for LocalMode reports being generated in a C# .Net app...

     

    Is it possible to programmatically set/control the default/suggested name that's used when the user selects the PDF export option?

     

    It appears that the default name is basically the main report's file name (minus the rdlc extension and with the pdf extension.) We'd like to change that...

     

    Friday, January 4, 2008 7:04 PM

Answers

  •  

     

    ReportViewer1.LocalReport.DisplayName = "Report Name"

     

     

     

    Is this what your asking about?  This will control the filename of the pdf and excel export

     

     

    Friday, January 4, 2008 7:21 PM
  • Yes that is exactly what I was asking about and I had just discovered that through experimentation.

     

    But thanks very much for the prompt response and yes you were right on the money!

     

     

    Friday, January 4, 2008 7:32 PM

All replies

  •  

     

    ReportViewer1.LocalReport.DisplayName = "Report Name"

     

     

     

    Is this what your asking about?  This will control the filename of the pdf and excel export

     

     

    Friday, January 4, 2008 7:21 PM
  • Yes that is exactly what I was asking about and I had just discovered that through experimentation.

     

    But thanks very much for the prompt response and yes you were right on the money!

     

     

    Friday, January 4, 2008 7:32 PM