Developers / Create Designer and Viewer Applications / Js Viewer Application / Switch Between Render Formats
Switch Between Render Formats

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'
});