I get this error when saving the excel file to pdf. This is in Android by the way. My code is basically like this:
Workbook workbook = new Workbook(filePath);
workbook.save(“MyPdf.pdf”, SaveFormat.PDF);
The filePath is a string that has a value of the file path of the excel file. I already granted those permissions in the manifest like what others would suggest yet I still have this error.
@soapsnakes,
I guess you are using Aspose.Cells for Android via Java, correct me if I am wrong? Your error denotes an io issue and nothing to do with Aspose.Cells APIs. On Android, you need to specify sd card path for the device (where you will store input and output files). So, make sure you are doing right. See the sample code for your reference:
e.g
Sample code:
//Get the sd card path on the device
String sdCardPath = Environment.getExternalStorageDirectory().getPath() + File.separator;
Workbook workbook = new Workbook(sdCardPath + "Book1.xlsx");
workbook.save(sdCardPath + "MyFile.pdf", SaveFormat.PDF);
Moreover, we recommend you to kindly see the topic on how to use Aspose.Cells for Android via Java in Android Studio for your complete reference.
Thank you for the reply! You are correct. I am using Aspose Cell in Android. Will tell you an update later.
It now works! Thank you very much!
@soapsnakes,
You are welcome. And, good to know that your issue is sorted out now.