need only export dpf directly in VS2008 using C# code RRS feed

  • Question

  • User1445440125 posted

    how to just export dpf directly and without configuring reportviewer.config in VS2008 using C# code ? I have found some way in changing  mssql server config file to get default export format, but it would effect all report files to export, now I just need particular  report file to export dpf, how can I do?

    Tuesday, January 11, 2011 2:23 PM


  • User1471008070 posted

    Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

    Do you mean there is only PDF option in the export drop-down list? If so please follow these: <o:p></o:p>

    1.   Preview the web page which contains the ReportViewer control.<o:p></o:p>

    2.   Check the source code of page. Find the id of the <select> node which contains the export options.
    e.g. It is " ReportViewer1_ctl01_ctl05_ctl00" in my page.<o:p></o:p>

    3.   In the ASPX file, add the JavaScript below:<o:p></o:p>

    <script type="text/javascript">
            window.onload = function() {
                var formatDropDown = document.getElementById('ReportViewer1_ctl01_ctl05_ctl00');
                if (formatDropDown != null) {


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 18, 2011 7:03 AM