Free Support Forum - groupdocs.com

Unable to create an instance of the document


#1

Hi team,

"Unable to create an istance of the document.The format of the document is unsupported or the do cument is corrupted."

This error occurs when the Viewer is loading an empty word document(.docx) which size is 0 byte.

version:v2.10.0.0

Questions:

1.Is it a known issue in v2.10.0.0 or before?

2.How to avoid it?

3.Is it still exists in v3.x?


#2

Hi,


Thank you for the question. Yes, empty file can’t be viewed in the old version of the library.
To avoid this you can check file info before load it in the Viewer. For how to check file info please check this documentation.

As for the 3-rd question - I will check it.

Best regards.

#3

Hi,


In addition to the previous post - I have checked it with the latest Viewer and it works well, no any errors thrown.

Best regards.

#4

It is helpful to me.

Thanks for your kindly support!