How to show export settings

Stimulsoft Reports.WEB discussion
Post Reply
a.ebbini
Posts: 101
Joined: Thu Jun 05, 2014 8:10 am
Location: Jordan

How to show export settings

Post 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 = ''
}
a.ebbini
Posts: 101
Joined: Thu Jun 05, 2014 8:10 am
Location: Jordan

Re: How to show export settings

Post by a.ebbini »

also how do direct print at client side?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to show export settings

Post 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.
a.ebbini
Posts: 101
Joined: Thu Jun 05, 2014 8:10 am
Location: Jordan

Re: How to show export settings

Post by a.ebbini »

Thank you,And i want to thank stimulsoft for this powerful tool and support.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to show export settings

Post 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.
Post Reply