Bytescout.XLS for .NET
|
Bytescout.XLS library for .NET
How to validate person ages in existing XLS spreadsheet document and mark persons with non-teenager age with red color This source code sample demonstrates how to use Bytescout.XLS library to open existing Excel (XLS) document and check the column with person ages: check if age is accepted (age should be teenager age from 10 to 19) and if age is not a teeneger age (less than 10 or greater than 19) so this person should be marked in the spreadsheet with red color Download example source code: bytescoutxls_validate_if_cell_value_in_range.zip (8 KB) Output spreadsheet (XLS) where persons with non-teenager age are marked with red color:
using System; namespace HelloWorld // Get worksheet by name // Minimum age // Spellcheck words // Check current cell // Markup wrong cell by red color // Save document // Close document // open generated XLS document in default program Download example source code: bytescoutxls_validate_if_cell_value_in_range.zip (8 KB)
Documentation online: view (separate window) |
|
|
||