Page 1 of 1

How to show export settings

Posted: Tue Sep 06, 2016 12:14 am
by a.ebbini
Dear Support Team,
I am looking to update the version that i already i am use to 2016.1.28, and i set ShowToolBar="false" at the report viewer which means that all functionally of report viewer (page nevigation,zoom ,viewmode,export ,...etc) i need to call it form client side through javascript.
Now point is how to show export settings popup ?
For example now i am working on version 2014.3.17

<a href="javascript:PrintReport('SaveWord2007');" runat="server" id="SaveWord2007">

function PrintReport(Mode) {
webViewer.setAttribute('ActionFunction', "__doPostBack('ctl00$MainContentPlaceHolder$StiCallbackPanel$RV','callbackAction')")
StiShowExportSettings(ReportViewerClientID, Mode); document.getElementById('__EVENTARGUMENT').value = ''
}

Re: How to show export settings

Posted: Wed Sep 07, 2016 2:04 am
by a.ebbini
also how do direct print at client side?

Re: How to show export settings

Posted: Wed Sep 07, 2016 7:24 am
by Alex K.
Hello,

Please check the following code:

Code: Select all

<body>
    <form id="form1" runat="server">
    <div>
        <cc2:StiWebViewer ID="StiWebViewer1" runat="server" ShowToolbar="false" />      
    </div>
        <script>
            //Save
            var exportType = "Word2007"; //"SaveDocument", "Pdf", "Xps", "Ppt2007", "Html", "Text", "Rtf", "Word2007", "Odt", "Excel", "Ods", "Csv", "ImageBmp"

            if (jsStiWebViewer1.options.exports.showExportDialog)
                jsStiWebViewer1.controls.forms.exportForm.show(exportType, jsStiWebViewer1.options.actions.exportReport);
            else
                jsStiWebViewer1.postExport(exportType, jsStiWebViewer1.getDefaultExportSettings(exportType));

            //Print
            var printType = "PrintPdf"; //"PrintPdf", "PrintWithPreview", "PrintWithoutPreview"

            jsStiWebViewer1.postPrint(printType);

            //Where jsStiWebViewer1 - 'js' + WebViewer id.
        </script>
    </form>
</body>
Thank you.

Re: How to show export settings

Posted: Wed Sep 07, 2016 8:46 am
by a.ebbini
Thank you,And i want to thank stimulsoft for this powerful tool and support.

Re: How to show export settings

Posted: Wed Sep 07, 2016 10:25 am
by Alex K.
Hello,

Thank you very much for these words! We are very glad that our product satisfies your requirements. Our main goal is to provide a product which is as close to the developers' requirements and ease of use for end users as possible.

Thank you.