Hi Bin,
Thanks for considering Aspose.
First I will respond to your previous queries:
1. Which version of Aspose.cell supports that? I don't see FileFormatType.Html or SheetToImage() in the online documentation. BTW, is it SheetToImage() or Sheet2Image()?
Well Sheet2Image and saving an .xls file as .html are our latest features and we want users to give a try as we have released them for testing purpose currently. The version (4.4.3.15) which I sent you in my previous post as an attchement does include both the features. And we will update our online documentation soon.
2. When saved as HTML, does it save all the workbooks, or just the first one? If multiple workbooks are saved, does it provides any way to navigate through them?
You mean to say all the worksheets in a workbook, well, yes, all the sheets in a workbook are saved. Navigation is the same as .xls file in ms excel as the sheet names are tabbed at the bottom.
3. When saved as either HTML or Image, does it include Charts? Is there a document to explain what excel features get included and what get excluded when saving to HTML or image?
Well, saving as .html would include charts but sheet2image will currently exclude them currently. Well, you may utilize Chart.ToImage() method to get the image of the chart. This feature is already there : Convert an Excel chart to image
Now let us come towards you recent questions:
1. It looks like Grid lines and chart objects are not included in the output image. Can this be fixed?
Well, if you check in MS Excel manually, gridlines are not seen when taking the print preview of a sheet. If you want to implement tabular format, you may either apply borders in MS Excel or use Aspose.Cells APIs to set borders for your data cells range: Adding border to cells
Using Named Ranges
2. It threw exceptions for some worksheets. For example, I tried a demo xls file (Aspose.Cells\Demos\Designer\FinancialPlan.xls). It threw a nullreference exception for the first worksheet. It worked ok with the 2nd worksheet.
Yes, we found the issue and will fix it soon.
3. It seems this method is overloaded. What do you do with the bool parameter in SheetToImage(bool)?
Please check the following notes to get the complete reference about the all the overloaded versions of the Worksheet.SheetToImage() method:
Notes:
The following list shows the versions of Worksheet.SheetToImage() overloaded method:
///
/// Creates the sheet image and returns it as a Bitmap object.
///
///
public Bitmap SheetToImage()
///
/// Creates the sheet image and saves it to a file.
///
/// The image file name with full path.
/// Indicates whether workshert can be paginated
///
///
The following formats are supported:
/// .bmp, .gif, .jpg, .jpeg, .tiff, .emf.
///
public void SheetToImage(string imageFile, bool isPaginate)
///
/// Creates the sheet image and saves it to a file.
///
/// The image file name with full path.
///
The following formats are supported:
/// .bmp, .gif, .jpg, .jpeg, .tiff, .emf.
///
public void SheetToImage(string imageFile)
///
/// Creates the sheet image and saves it to a file in the specified format.
///
/// The image file name with full path.
/// The format in which to save the image.
/// Indicates whether workshert can be paginated
///
The following formats are supported:
/// .bmp, .gif, .jpg, .jpeg, .tiff, .emf.
///
public void SheetToImage(string imageFile, ImageFormat imageFormat, bool isPaginate)
///
/// Creates the sheet image and saves it to a file in the specified format.
///
/// The image file name with full path.
/// The format in which to save the image.
///
The following formats are supported:
/// .bmp, .gif, .jpg, .jpeg, .tiff, .emf.
///
public void SheetToImage(string imageFile, ImageFormat imageFormat)
And we also support print worksheet now.
///
/// Prints the work sheet
///
/// The printer name
public void SheetToPrinter(String PrinterName)
Thank you.