we ran into the following error while trying to convert a CSV file to TIFF.
“Error Decoding TestFile.CSV. No imaging component suitable to complete this operation was found.”
Could you please help us resolve this?
We will share the sample code privately if required.
can you provide the csv file ?
we need to check it .
It seems you are loading the CSV file as some kind of Image directly. To render workbook/worksheet to image such as tiff:
Firstly you need to load the csv as a Workbook instance, for your reference please see this document: Opening CSV Files.
Then you may render the workbook or worksheet to tiff, for your reference please see the document : Converting Workbook to TIFF.
If you have done like that but still get the issue, please send us your code and csv file so we can help to figure the issue out.
Will try your suggestions and will update.
Sure, please take your time to try the recommendations. In case, you still find any issue, let us know with sample file(s) and code. We will look into it soon.
Have tried as per your suggestions and the CSV or XLSX to TIFF conversion results are not as expected. Enclosed screenshots for reference.
image.png (8.4 KB)
image.png (8.8 KB)
image.png (27.1 KB)
Thanks for the screenshots.
Please try to call auto-fit columns operation for the worksheet before rendering to TIFF. You may try to add a line to your code segment before rendering to TIFF. See the following code segment for your reference.
//Get the first worksheet
Worksheet worksheet = workbook.Worksheets;
If you still get any issue, kindly do zip and attach your input and output files. Also, share your sample code that you are using. We will check it soon.
You are welcome. If you have any questions, please feel free to contact us.