Why conversion can’t recognize the Separator automatically. I have to specify the separator if it is “;” .
Second My CSV file is ANSI Encoding but I has special Danish char So I am setting LoadOptions.Encoding = UTF8 but this not impacting the output.
I want UTF 8 encoding for each conversion so that it can manage the special char irrespective to what is the original file encoding…
Second it should automatically detect the separator. Is there any option by which i can enable this.99.zip (284 Bytes)
Here is my code and ZIP file
Aspose.Cells.TxtLoadOptions loadOptions = new Aspose.Cells.TxtLoadOptions(Aspose.Cells.LoadFormat.Csv);
loadOptions.Separator = ‘;’;
using (Aspose.Cells.Workbook book = new Aspose.Cells.Workbook(fileDetail.FileInfo.FullName, loadOptions))
{
Aspose.Cells.Rendering.ImageOrPrintOptions imgOptions = new Aspose.Cells.Rendering.ImageOrPrintOptions();
imgOptions.OnePagePerSheet = true;
imgOptions.HorizontalResolution = 300;
imgOptions.VerticalResolution = 300;
imgOptions.TiffCompression = Aspose.Cells.Rendering.TiffCompression.CompressionLZW;
imgOptions.TiffColorDepth = Aspose.Cells.Rendering.ColorDepth.Format8bpp;
imgOptions.ImageType = Aspose.Cells.Drawing.ImageType.Tiff;
Aspose.Cells.Rendering.WorkbookRender wr = new Aspose.Cells.Rendering.WorkbookRender(book, imgOptions);
wr.ToImage(fileDetail.OutputPath);
}