Follow on Google News News By Tag Industry News News By Location Country(s) Industry News
Follow on Google News | Work with images in Excel spreadsheet in .NETElerium Excel .NET component, new release 2.0 has been introduced by Elerium Software.
By: Elerium Software If it is needed to create a small report, then the best choice is the MS Excel. But what if it is necessary to generate large reports regularly with a huge amount of data on the server without installed MS Excel? Elerium Software offers Excel .NET component as a great solution for .NET developers. Elerium Excel .NET component, new release 2.0 has been introduced by Elerium Software. It has several important changes: - New algorithm of reading OLE2 Stream in Excel file. - New algorithm of parsing Excel Stream. - New function restructuring. - Fixed Border properties. How to work with images in Excel spreadsheet using Elerium Excel .NET component? This is very easy. First of all, a developer must install component to the project: 1. Add Elerium Excel .Net component to the solution. Simply put Excel.dll into /bin folder of the project. 2. Initialize the Docs.Excel instance. When the component is connected to the project a developer can create a new Excel document and add an image to the spreadsheet in a certain position: C# code: using System; using System.Collections.Generic; using System.Text; using Docs.Excel; namespace WriteImages { class Program { static void Main(string[] { //Create a new workbook. ExcelWorkbook Wbook = new ExcelWorkbook(); //Add new worksheet to workbook. Wbook.Worksheets.Add(" //Insert an image. Wbook.Worksheets[ //Set position of picture. Wbook.Worksheets[ //Write .xlsx file. Wbook.WriteXLSX(@" } } } VB.NET code: Module Module1 Sub Main() 'Create a new workbook. Dim Wbook = New ExcelWorkbook() 'Add new worksheet to workbook. Wbook.Worksheets.Add(" 'Insert an image. Wbook.Worksheets( 'Set position of picture. Wbook.Worksheets( 'Write .xlsx file. Wbook.WriteXLSX(" End Sub End Module Also a developer can use Elerium Excel .NET component to extract images from existing Excel spreadsheet: C# code: using System; using System.Collections.Generic; using System.Text; using System.Drawing; using Docs.Excel; namespace ReadImage { class Program { static void Main(string[] { ExcelWorkbook Wbook = ExcelWorkbook.ReadXLSX(@" Wbook.Worksheets[ } } } VB.NET code: Module Module1 Sub Main() Dim Wbook = ExcelWorkbook.ReadXLSX(" Wbook.Worksheets( End Sub End Module About Elerium Software Elerium Software develops professional solutions for use in .NET projects (C#, VB.NET, ASP.NET) that aimed to read/write/convert different office/web documents and formats. Elerium Software components are based on the unique design and fast algorithms that allow being independent from the third-party applications and libraries. For more information about the component please visit the product page: http://www.eleriumsoft.com/ End
Account Email Address Account Phone Number Disclaimer Report Abuse
|
|