Posted 12 July 2018, 2:21 am EST
We are using Active Reports 12, version 12.1.13124. We are displaying some RDL reports in the HTML 5 viewer. Exporting to docx seems to be a valid choice on teh export type enumeration in javascript, but when we choose it we get an “Unknown Export Type” error.
We stepped in to the javascript that is doing the export and we see this:
this.Export = function(exportType, callback, saveAsDialog, settings) {
if (!callback || !callback.call) {
throw new Error(‘Cannot export without callback function.’);
}
if (exportType != ExportType.Pdf &&
exportType != ExportType.Html &&
exportType != ExportType.Word &&
exportType != ExportType.Xls &&
exportType != ExportType.Xml) {
throw new Error('Unknown export type.');
}
if (! settings) {
settings = { };
}
if (saveAsDialog) {
settings[‘SaveAsDialog’] = ‘true’;
}
_this.exportImpl(exportType, settings, callback); };
If would appear from that function that docx is not actually supported. Can we export to docx. from the HTML 5 viewer?