Can we get the viewer object (like pop-up in smart-client) in web-client?
I have tried as follows.
- Code: Select all
var template = "quotation.html";
var previewParams = {
showToolBar: true,
useSaveLocalPDF : true,
usePrint : true,
useFontZoom : false,
useTogglePaginated: false,
showStatus: false,
openInPaginated : true,
bounds : [-1, -1, 870, 600],
verticalScrollbar : plugins.VelocityReport.PREVIEW.VSCROLLBAR_ASNEEDED
}
plugins.VelocityReport.setDefaultPreviewParameters(previewParams);
var context = new Object();
context.title = 'Testing';
context.body_content = '<h1>TESTING</h1>';
if(application.getApplicationType() == APPLICATION_TYPES.WEB_CLIENT) {
plugins.VelocityReport.previewReport(template, context, viewerSaveCallback, 'HTML');
}
else {
plugins.VelocityReport.previewReport(template, context, 'HTML');
}
And I have tried with changing the webMode.
- Code: Select all
plugins.VelocityReport.previewReport(template, context, viewerSaveCallback, 'PDF');
Please advice.