The example source codes on this page will display you how to make fonts available for cells with spreadsheet sdk in C#. ByteScout Data Extraction Suite helps with fonts available for cells with spreadsheet sdk in C#. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.
Want to speed up the application development? Then this C#, code samples for C#, developers help to speed up the application development and writing a code when using ByteScout Data Extraction Suite. To use fonts available for cells with spreadsheet sdk in your C# project or application just copy & paste the code and then run your app! These C# sample examples can be used in one or many applications.
If you want to try other samples for C# then free trial version of ByteScout Data Extraction Suite is available on our website.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using Bytescout.Spreadsheet; using System.IO; namespace HelloWorld { class Program { static void Main(string[] args) { // Create new Spreadsheet Spreadsheet document = new Spreadsheet(); // Add new worksheet Worksheet worksheet = document.Workbook.Worksheets.Add("HelloWorld"); // Create array with font names string[] fontNames = new string[] { "Helvetica", "Times New Roman", "Verdana", "Times New Roman" }; // Use all fonts in fontsNames array for (int i = 0; i < fontNames.Length; i++) { // Set font size based on loop counter float fontSize = 10 + i * 3; //Set cell font type and font size worksheet.Cell(i, 0).Font = new System.Drawing.Font(fontNames[i], fontSize); // Set cell value worksheet.Cell(i, 0).Value = fontNames[i]; } // delete output file if exists already if (File.Exists("Fonts.xls")){ File.Delete("Fonts.xls"); } // Save document document.SaveAs("Fonts.xls"); // Close document document.Close(); // open generated XLS document in default program Process.Start("Fonts.xls"); } } }
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: