ActiveReports 18 .NET Edition
Developers / Create Designer and Viewer Applications / Js Viewer Application / Switch Between Render Formats
In This Topic
    Switch Between Render Formats
    In This Topic

    It is required to specify the render format in Js Viewer in the following scenarios:

    The Js Viewer supports three render formats - 'auto' (default), 'html', and 'svg'.  For a Page or an RDLX report, set the value to 'html'. For a Section report, set the value to 'svg'

    To switch the mode, you should specify the renderFormat setting through the JS Viewer API

    Index.cshtml
    Copy Code
    viewer = GrapeCity.ActiveReports.JSViewer.create({
        element: '#viewer-host',
        renderFormat: 'svg'
    });