Skip to content

Commit

Permalink
net parser
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhe998 committed Jan 25, 2024
1 parent ac40951 commit 7b629e0
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 28 deletions.
9 changes: 2 additions & 7 deletions cells/en/net/parser/ods/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ keywords: [C# Aspose.Cells., c# Extract text and images from ODS file., c# How t

{{% blocks/products/pf/agp/content h2="How to Parse ODS File Using C#" %}}

In order to parse ODS file, we’ll use
[Aspose.Cells for .NET](https://products.aspose.com/cells/net)
API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open
[NuGet](https://www.nuget.org/packages/aspose.cells)
package manager, search for
**Aspose.Cells**
and install. You may also use the following command from the Package Manager Console.
In order to parse ODS file, we’ll use [Aspose.Cells for .NET](https://products.aspose.com/cells/net) API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open [NuGet](https://www.nuget.org/packages/aspose.cells) package manager, search for **Aspose.Cells** and install. You may also use the following command from the Package Manager Console.

{{% blocks/products/pf/agp/code-block title="Command" offSpacer="true" %}}

Expand Down Expand Up @@ -137,6 +131,7 @@ Files with ODS extension stand for OpenDocument Spreadsheet Document format that
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xls/" name="XLS" description="Excel Binary Format" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsb/" name="XLSB" description="Binary Excel Workbook File" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsm/" name="XLSM" description="Spreadsheet File" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsx/" name="XLSX" description="OOXML Excel File" >}}

{{< /blocks/products/pf/agp/other-supported-section >}}

Expand Down
10 changes: 3 additions & 7 deletions cells/en/net/parser/xls/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@ keywords: [C# Aspose.Cells., c# Extract text and images from XLS file., c# How t

{{% blocks/products/pf/agp/content h2="How to Parse XLS File Using C#" %}}

In order to parse XLS file, we’ll use
[Aspose.Cells for .NET](https://products.aspose.com/cells/net)
API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open
[NuGet](https://www.nuget.org/packages/aspose.cells)
package manager, search for
**Aspose.Cells**
and install. You may also use the following command from the Package Manager Console.
In order to parse XLS file, we’ll use [Aspose.Cells for .NET](https://products.aspose.com/cells/net) API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open [NuGet](https://www.nuget.org/packages/aspose.cells) package manager, search for
**Aspose.Cells** and install. You may also use the following command from the Package Manager Console.

{{% blocks/products/pf/agp/code-block title="Command" offSpacer="true" %}}

Expand Down Expand Up @@ -137,6 +132,7 @@ Files with XLS extension represent Excel Binary File Format. Such files can be c
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/ods/" name="ODS" description="OpenDocument Spreadsheet File" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsb/" name="XLSB" description="Binary Excel Workbook File" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsm/" name="XLSM" description="Spreadsheet File" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsx/" name="XLSX" description="OOXML Excel File" >}}

{{< /blocks/products/pf/agp/other-supported-section >}}

Expand Down
9 changes: 2 additions & 7 deletions cells/en/net/parser/xlsb/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ keywords: [C# Aspose.Cells., c# Extract text and images from XLSB file., c# How

{{% blocks/products/pf/agp/content h2="How to Parse XLSB File Using C#" %}}

In order to parse XLSB file, we’ll use
[Aspose.Cells for .NET](https://products.aspose.com/cells/net)
API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open
[NuGet](https://www.nuget.org/packages/aspose.cells)
package manager, search for
**Aspose.Cells**
and install. You may also use the following command from the Package Manager Console.
In order to parse XLSB file, we’ll use [Aspose.Cells for .NET](https://products.aspose.com/cells/net) API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open [NuGet](https://www.nuget.org/packages/aspose.cells) package manager, search for **Aspose.Cells** and install. You may also use the following command from the Package Manager Console.

{{% blocks/products/pf/agp/code-block title="Command" offSpacer="true" %}}

Expand Down Expand Up @@ -137,6 +131,7 @@ XLSB file format specifies the Excel Binary File Format, which is a collection o
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/ods/" name="ODS" description="OpenDocument Spreadsheet File" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xls/" name="XLS" description="Excel Binary Format" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsm/" name="XLSM" description="Spreadsheet File" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsx/" name="XLSX" description="OOXML Excel File" >}}

{{< /blocks/products/pf/agp/other-supported-section >}}

Expand Down
10 changes: 3 additions & 7 deletions cells/en/net/parser/xlsm/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@ keywords: [C# Aspose.Cells., c# Extract text and images from XLSM file., c# How

{{% blocks/products/pf/agp/content h2="How to Parse XLSM File Using C#" %}}

In order to parse XLSM file, we’ll use
[Aspose.Cells for .NET](https://products.aspose.com/cells/net)
API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open
[NuGet](https://www.nuget.org/packages/aspose.cells)
package manager, search for
**Aspose.Cells**
and install. You may also use the following command from the Package Manager Console.
In order to parse XLSM file, we’ll use [Aspose.Cells for .NET](https://products.aspose.com/cells/net) API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open [NuGet](https://www.nuget.org/packages/aspose.cells) package manager, search for
**Aspose.Cells** and install. You may also use the following command from the Package Manager Console.

{{% blocks/products/pf/agp/code-block title="Command" offSpacer="true" %}}

Expand Down Expand Up @@ -137,6 +132,7 @@ Files with XLSM extension is a type of Spreadsheet files that support Macros. Fr
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/ods/" name="ODS" description="OpenDocument Spreadsheet File" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xls/" name="XLS" description="Excel Binary Format" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsb/" name="XLSB" description="Binary Excel Workbook File" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsx/" name="XLSX" description="OOXML Excel File" >}}

{{< /blocks/products/pf/agp/other-supported-section >}}

Expand Down
141 changes: 141 additions & 0 deletions cells/en/net/parser/xlsx/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
---
title: Extract text and images from XLSX document via .NET
weight: 4010

description: C# source code to extract text and images from XLSX file on .NET Framework, .NET Core, Mono or Xamarin Platforms.
keywords: [C# Aspose.Cells., c# Extract text and images from XLSX file., c# How to Parse XLSX File., c# Extract text from XLSX file., Extract images from XLSX file using C#]
---

{{< blocks/products/pf/main-wrap-class isAutogenPage="true">}}
{{< blocks/products/pf/upper-banner h1="Parse XLSX Formats in C#" h2="Native and high performance XLSX document parsing using server-side Aspose.Cells for .NET APIs, without the use of any software like Microsoft or Adobe PDF." logoImageSrc="https://www.aspose.cloud/templates/aspose/img/products/cells/aspose_cells-for-net.svg" sourceAdditionalConversionTag="" additionalConversionTag="" pfName="Aspose.Cells" subTitlepfName="for .NET" downloadUrl="" fileiconsmall1="PNG" fileiconsmall2="JPG" fileiconsmall3="BMP" fileiconsmall4="TIFF" fileiconsmall5="XLSX" >}}

{{< blocks/products/pf/main-container pfName="Aspose.Cells " subTitlepfName="for .NET" >}}
{{< blocks/products/pf/sub-menu autoGeneratedVersion="true" logoImageSrc="https://www.aspose.cloud/templates/aspose/img/products/cells/aspose_cells-for-net.svg" apiHomeLink="" codeSamplesLink="https://github.com/aspose-cells" liveDemosLink="https://products.aspose.app/cells/family" docsLink="https://docs.aspose.com/cells/net" installationsDocsLink="https://docs.aspose.com/cells/net" nugetLink="https://www.nuget.org/packages/aspose.cells" nugetPackageName="" downloadAsLink="https://downloads.aspose.com/cells/net" learnAsLink="https://docs.aspose.com/cells/net" apiReference="" mavenRepoLink="" >}}

{{% blocks/products/pf/agp/content h2="How to Parse XLSX File Using C#" %}}

In order to parse XLSX file, we’ll use [Aspose.Cells for .NET](https://products.aspose.com/cells/net) API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open [NuGet](https://www.nuget.org/packages/aspose.cells) package manager, search for
**Aspose.Cells** and install. You may also use the following command from the Package Manager Console.

{{% blocks/products/pf/agp/code-block title="Command" offSpacer="true" %}}

```cs

PM> Install-Package Aspose.Cells

```

{{% /blocks/products/pf/agp/code-block %}}

{{% /blocks/products/pf/agp/content %}}

{{< blocks/products/pf/agp/feature-section isGrey="true" >}}

{{% blocks/products/pf/agp/feature-section-col title="Steps to Parse XLSX Files in C#" %}}

{{% blocks/products/pf/agp/text %}}

A basic document parsing with
[Aspose.Cells for .NET](https://products.aspose.com/cells/net)
APIs can be done with just few lines of code. Parse text & images from Microsoft Excel XLS, XLSX, XLSM, XLSB and OpenDocument ODS files.

{{% /blocks/products/pf/agp/text %}}

+ Load XLSX document.
+ Select sheet.
+ Get the picture and image type.
+ Save the image.
+ Save document

{{% /blocks/products/pf/agp/feature-section-col %}}

{{% blocks/products/pf/agp/feature-section-col title="System Requirements" %}}

{{% blocks/products/pf/agp/text %}}

Our APIs are supported on all major platforms and Operating Systems. Before executing the code below, please make sure that you have the following prerequisites on your system.

{{% /blocks/products/pf/agp/text %}}

- Microsoft Windows or a compatible OS with .NET Framework, .NET Core, Mono or Xamarin Platforms
- Development environment like Microsoft Visual Studio
- Add reference to the Aspose.Cells for .NET DLL in your project - Install from NuGet using the Download button above

{{% /blocks/products/pf/agp/feature-section-col %}}

{{% blocks/products/pf/agp/code-block title="Parse XLSX Files - C#" offSpacer="" %}}

```cs
// extract images from Worksheets
// open a template Excel file
Workbook workbook = new Workbook("sampleExtractImagesFromWorksheets.xlsx");

// get the first worksheet
Worksheet worksheet = workbook.Worksheets[0];

// get the first Picture in the first worksheet
Aspose.Cells.Drawing.Picture pic = worksheet.Pictures[0];

// set the output image file path
string picformat = pic.ImageType.ToString();

// Note: you may evaluate the image format before specifying the image path
// define ImageOrPrintOptions
Aspose.Cells.Rendering.ImageOrPrintOptions printoption = new Aspose.Cells.Rendering.ImageOrPrintOptions();

// specify the image format
printoption.ImageType = Aspose.Cells.Drawing.ImageType.Jpeg;

// save the image
pic.ToImage("outputExtractImagesFromWorksheets.jpg", printoption);



```

{{% /blocks/products/pf/agp/code-block %}}

{{< /blocks/products/pf/agp/feature-section >}}

{{< blocks/products/pf/agp/faq-item question="" answer="" >}}


<!-- aboutfile Starts -->

{{% blocks/products/pf/agp/content h2="About Aspose.Cells for .NET API" %}}

Aspose.Cells API can be used to create, edit, convert and render Microsoft Excel formats to different formats. Moreover, it can be used for comprehensive charting, scalable reporting and reliable calculations within software applications. Aspose.Cells is a standalone API and it does not require any software like Microsoft or OpenOffice.



{{% /blocks/products/pf/agp/content %}}

{{< blocks/products/pf/agp/about-file-section >}}

{{< blocks/products/pf/agp/demobox sectionTitle="Online XLSX Parser Live Demos" sectionDescription="Extract text and images from XLSX documents right now by visiting our [Live Demos website](https://products.aspose.app/cells/parser). The live demo has the following benefits" >}}
{{< blocks/products/pf/agp/democard icon="fa-cogs" text=" No need to download Aspose API." >}}
{{< blocks/products/pf/agp/democard icon="fa-edit" text=" No need to write any code." >}}
{{< blocks/products/pf/agp/democard icon="fa-file-text" text=" Just upload your XLSX files." >}}
{{< blocks/products/pf/agp/democard icon="fa-download" text=" It will be parsed instantly." >}}

{{< blocks/products/pf/agp/about-file-text fileFormat="XLSX" readMoreLink="https://docs.fileformat.com/spreadsheet/xlsx/" >}}
XLSX is well-known format for Microsoft Excel documents that was introduced by Microsoft with the release of Microsoft Office 2007. Based on structure organized according to the Open Packaging Conventions as outlined in Part 2 of the OOXML standard ECMA-376, the new format is a zip package that contains a number of XML files. The underlying structure and files can be examined by simply unzipping the .xlsx file.

{{< /blocks/products/pf/agp/about-file-text >}}

{{< /blocks/products/pf/agp/about-file-section >}}

<!-- aboutfile Ends -->

{{< blocks/products/pf/agp/other-supported-section title="Other Supported Parsing Formats" subTitle="Using C#, one can easily parse other formats including." >}}

{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/ods/" name="ODS" description="OpenDocument Spreadsheet File" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xls/" name="XLS" description="Excel Binary Format" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsb/" name="XLSB" description="Binary Excel Workbook File" >}}
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/cells/net/parser/xlsm/" name="XLSM" description="Spreadsheet File" >}}

{{< /blocks/products/pf/agp/other-supported-section >}}

{{< /blocks/products/pf/main-container >}}

{{< /blocks/products/pf/main-wrap-class >}}

0 comments on commit 7b629e0

Please sign in to comment.