Question

I am trying to copy a file and in the copied file I have to search some string and replace that. Replace option is in ms word package and the file is .doc as well, but still I fail to replace text as I get the below as error

  • 27 April 2022
  • 3 replies
  • 31 views

Badge +4

An unexpected error occurred.

The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with OOXML (Office Open XML) Documents. You need to call a different part of POI to process this data (eg HSSF instead of XSSF)

Please contact system administrator.


3 replies

Same Issue with ME anyone who had solved this problem

Badge +4

Change the format to .docx.. you are allowed to do that​

Thanks for replying @Enab Rasool Dar Basmati​ 

Reply