On this page you will learn from code samples for programming in C#.Writing of the code to export to PDF in C# can be done by developers of any level using ByteScout Spreadsheet SDK. ByteScout Spreadsheet SDK: the SDK to create, read, modify and calculate spreadsheets. Formula calculations are supported, import and export to and from JSON, CSV, XML, databases, arrays. It can export to PDF in C#.
This code snippet below for ByteScout Spreadsheet SDK works best when you need to quickly export to PDF in your C# application. Follow the instructions from the scratch to work and copy the C# code. Implementing C# application typically includes multiple stages of the software development so even if the functionality works please test it with your data and the production environment.
ByteScout Spreadsheet SDK free trial version is available on our website. C# and other programming languages are supported.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
using Bytescout.Spreadsheet; using System.IO; namespace XLS2PDF { class Program { static void Main(string[] args) { Spreadsheet document = new Spreadsheet(); // load table from existing XLS file document.LoadFromFile("SimpleReport.xls"); // add image document.Workbook.Worksheets[0].Pictures.Add(5, 1, "image.jpg"); // save as PDF bool autosize = false; document.SaveAsPDF("Output.pdf", autosize); // close the document document.Close(); } } }
60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page
Explore ByteScout Spreadsheet SDK Documentation
Explore Samples
Sign Up for ByteScout Spreadsheet SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page
Explore ByteScout Spreadsheet SDK Documentation
Explore Samples
Sign Up for ByteScout Spreadsheet SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: