Bytescout.XLS for .NET
|
Bytescout.XLS library for .NET
How to enable Shrink To Fit property for cells so Excel will automatically fit text for the cell according to changed cell width in spreadsheet XLS document made with Bytescout.XLS library This source code sample demonstrates how to use Shrink To Fit property for cell in spreadsheet generated with Bytescout.XLS library so generated XLS document will automatically fit text in the cell when opened in Excel 2003 or 2007 Download example source code: bytescoutxls_using_shrink_to_fit_for_cells.zip (10 KB) Output XLS document screenshot (in Office 2003):
Output XLS document screenshot (in Office
2007): Modified document screenshot (see Homer's Full Name changed)
using System; namespace HelloWorld // Add new worksheet // Set cell value // Shrink text // Save document // Close document // open generated XLS document in default program Download example source code: bytescoutxls_using_shrink_to_fit_for_cells.zip (10 KB)
Documentation online: view (separate window) |
|
|
||