Question4Replies447Views SANTOSHKY Member since 2013 3 posts Virtusa Posted: 2 years agoLast activity: 2 years ago Closed Unable to open the Export to Excel report in xlsx formatHi,I need to export the data from repeat grid to an excel(.xlsx). Able to export the data, but unable to open the same as i am getting below error while opening the excel(.xlsx) file."Excel cannot open the file because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file."Here is the code snippet.ClipboardPage objHeadersPage = tools.findPage("pxRequestor").getProperty(".pyHTTPResponseHeaders").getPageValue(); objHeadersPage.putString("contentType" ,"application/vnd.ms-excel"); objHeadersPage.putString("ContentDisposition" ,"attachment;filename= ARWorksheet.xlsx");Calling a HTML stream rule to display the data.Please note that it is working fine when i give the format as xls and not working for xlsx.Please let me know if i am missing anything here.Thank you.***Edited by Moderator Marissa to update platform capability tags**** Low-Code App Development Reporting ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 2 years agoBhavya_Incessant Incessant Technologies replied to SANTOSHKYHi Have a look at below link: https://community1.pega.com/community/product-support/question/how-msog… Hope it helps. Regards Bhavya Posted: 2 years agoSANTOSHKY Virtusa replied to Bhavya_IncessantDo we know why it is working for xls and not working xlsx? Posted: 2 years agoGayatri incessant replied to SANTOSHKYCan you try using activity msogenerateexcel activity? Posted: 2 years agoSANTOSHKY Virtusa replied to GayatriDo we know why it is working for xls and not working xlsx?