Multi-Worksheet Workbook only recognizes one Worksheet

Hello,

When I try to create a Workbook from a ByteArrayInputStream in Java, it only recognizes the first worksheet. It calls it “Sheet1”. It almost looks like a blank Excel sheet. I have a valid Byte array and I create a ByteArrayInputStream from that byte array. However, it doesn’t seem to be creating the PDF correctly. What could be the problem?

@jmmorgan,

Would you please provide us the template file(data of your byte array) and your code so we can reproduce and trace the issue? Before that, you may check and confirm whether your ByteArrayInputStream is available for reading all data(the pointer is at the beginning of the stream)? And what’s the file format of your template file? You may try Workbook(InputStream stream, LoadOptions loadOptions) with specified file format to check whether it can work.