Hi all…
I am trying to export a db to excel file but when opening in excel it says that the file is not supported. When opening in Google Sheets it says the file is corrupted.
Here is the wix code on the button:
export function exportToExcel_click(event) {
let dataCollectionName = "contact02";
wixData.query(dataCollectionName)
.find()
.then((results) => {
if (results.totalCount > 0) {
let items = results.items;
$w("#html1").postMessage(items);
}
})
}
And here is the “html1” code embedded in the page:
Anyone can help please…?
Thank you and have a great day.