|
Thanks Andrey. As I do not run on machines Comdlg32.ocx already damaged, I changed the code to save directly to a specific directory on the local computer, but the ideal would open a dialog to save as well as with the normal Comdlg32.ocx the modified code is this:
function ExportToExcel() { var fileName = "" var includeTotals = true; var formatNumbers = true; var includeColors = true; var merge = true; var selectedCub = document.form.DCubeView.options[document.form.DCubeView.selectedIndex].value; var selectedCub = selectedCub.replace(/\\/g, "/"); var filenm = selectedCub.substring(selectedCub.lastIndexOf('/') + 1); var fileName1 = filenm.split('.'); var fileName = "c:/test/" + fileName1[0] + ".xls"; if (fileName != "") { DCube.ExportToExcel(fileName, includeTotals,formatNumbers, includeColors, merge); window.alert("Export to" + fileName ); } }
If I could a dialog to save or to force the download to the browser open and you choose which save file would be better ... I appreciate any help.
|