Git Product home page Git Product logo

gemboxltd / gembox.spreadsheet.examples Goto Github PK

View Code? Open in Web Editor NEW
64.0 64.0 24.0 17.83 MB

GemBox.Spreadsheet is a .NET component that enables you to read, write, convert, and print spreadsheet files (XLSX, XLS, XLSB, CSV, HTML, and ODS) from .NET applications in a simple and efficient way.

Home Page: https://www.gemboxsoftware.com/spreadsheet

License: MIT License

C# 68.52% HTML 7.83% PHP 0.65% Python 0.59% Visual Basic .NET 19.58% ASP.NET 1.50% Classic ASP 0.63% Dockerfile 0.69%
csharp csv excel ods vbnet xls xlsx

gembox.spreadsheet.examples's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gembox.spreadsheet.examples's Issues

Convert excel to to HTML does not export the images to the HTML

Hi team, I have used the sample code for converting an excel file to PDF but the images are not moved to HTML

// Set license key to use GemBox.Spreadsheet in Free mode.
SpreadsheetInfo.SetLicense("FREE-LIMITED-KEY");

var workbook = ExcelFile.Load(@"D:\Work\DotNet\TestViewer\DocumentViewer\storage\test.xls");
var worksheet = workbook.Worksheets[0];

// Some of the properties from ExcelPrintOptions class are supported in HTML export.
worksheet.PrintOptions.PrintHeadings = true;
worksheet.PrintOptions.PrintGridlines = true;

// Print area can be used to specify custom cell range which should be exported to HTML.
worksheet.NamedRanges.SetPrintArea(worksheet.Cells.GetSubrange("A1", "M42"));

var options = new HtmlSaveOptions()
{
    HtmlType = HtmlType.Html,
    SelectionType = SelectionType.EntireFile,
    EmbedImages = true,
};

workbook.Save(@"D:\Work\DotNet\TestViewer\DocumentViewer\storage\HtmlExport.html", options);

[C# /Platforms/MAUI] Cannot get a matching glyph typeface for font 'Calibri'

I am using GemBox.Spreadsheet for Xamarin.Android project for converting Excel to Pdf file

Run MAUI demo in android device got below issue:

Screenshot_1687424613

I try creating my demo Xamarin.Android project and get the same issue
Screenshot 2023-06-22 at 14 02 02

Detect location of exception, I found function FontToWin32Font that may not available for android env
Screenshot 2023-06-22 at 16 10 12

Thank for your reading!

change paper size in print excel

Hi,

How to change the paper size of the printer when printing from an Excel file?
For example, set the paper size to store printers(8cm).

var workbook = new ExcelFile();
var worksheet = workbook.Worksheets.Add("Print and View Options");

worksheet.Cells["M1"].Value = "This worksheet shows how to set various print related and view related options.";
worksheet.Cells["M2"].Value = "To see results of print options, go to Print and Page Setup dialogs in MS Excel.";
worksheet.Cells["M3"].Value = "Notice that print and view options are worksheet based, not workbook based.";

var printOptions = worksheet.PrintOptions;
printOptions.PrintGridlines = true;
printOptions.PrintHeadings = true;
printOptions.Portrait = false;
printOptions.PaperType = PaperType.A3;
printOptions.NumberOfCopies = 5;

worksheet.ViewOptions.FirstVisibleColumn = 3;
worksheet.ViewOptions.ShowColumnsFromRightToLeft = true;
worksheet.ViewOptions.Zoom = 123;

worksheet.NamedRanges.SetPrintArea(worksheet.Cells.GetSubrange("E1", "U7"));

workbook.Save("Print and View Options.xlsx");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.