hi,
a couple of things. I am using FreeSpire.XLS v7.9.1
1) Will .ToEMFStream be added to this version (it is in the paid for version)?
2) I am currently using the SaveToEMFImage but
a) when I try ti immediately open the file that I have just saved I am told it is being used by another process. My code:
using (var wb = new Spire.Xls.Workbook())
{
wb.LoadFromStream(xlsStream);
var fileName = "test.emf";
wb.Worksheets[0].SavetoEMFImage(fileName, 2, 2, 8, 24, EmfType.EmfOnly);
using (var fs = File.Open(fileName,FileMode.Open))
{
useFileStream(fs);
}
}
but it errors as soon as I try the File.Open statement. What do I need to do to stop this.
AND b) It doesn't seem to save the full image (if I don't bother with the File.Open bit). I am trying to capture 7 rows , 23 columns. I get the first 2 rows in full, then the 3rd stops after the first 3 cells. Is this a limitation of the free version?
thanks
Phil
ADDENDUM: Even the first 2 rows aren't rendered correctly with alignment and merged cells. See attachment - top picture is what Spire.XLS produces. Bottom is an actual copy of the cells.