Bytescout.XLS for .NET
|
Bytescout.XLS library for .NET
How to set cell alignment in excel XLS document made with Bytescout.XLS library for .NET in C# This source code sample demonstrates how to set and use different alignments (left, right, center) for a cell in xls documents generated with with Bytescout.XLS library for .NET Download example source code: bytescoutxls_write_formula_into_cell.zip (1 KB)
using System; namespace HelloWorld // Add new worksheet // Set Values worksheet.Cell("B1").Value = "Full Name"; worksheet.Cell("A2").Value = "Homer"; worksheet.Cell("B2").Value = "Homer Jay
Simpson"; // set columns width // Save document // open XLS document in default XLS Excel documents
application Download example source code: bytescoutxls_write_formula_into_cell.zip (1 KB)
Documentation online: view (separate window) |
|
|
||