Can you please specify the API version that you integrated in the project (e.g. 19.10, 20.1). Also share the sample/problematic XLS file. Do you face this issue only in the case of XLS? We’ll appreciate your cooperation in this regard.
I am using version 20.1 and as an example I have used the sample.xlsx from the Viewer Examples project. As a matter of fact I have tried from the project too and got the same exception.
I ran the HelloWorld and tried to get the ViewInfo by passing in ViewInfoOptions.forJpgView(false).
We cannot reproduce this issue at our end. Please have a look at this screenshot.JPG (57.1 KB). Can you please share a simple/console application using that issue could be reproduced.
@atirtahir3, in which OS did you run the code? I successfully ran the code on macOS but the output is not correct… it should render 24 jpg files, 8 jpg for each sheet in the ‘sample.xlsx’ and it just rendered 2 jpg files only…
On the other hand when I don’t try to invoke ‘getViewInfo’(which throws the exception on Windows and on my Ubuntu machine) it renders as expected the 24 jpg files…