DOCINFRA-2346 updated the files for File-Formats platform
|
@ -3048,3 +3048,103 @@ document.Close();
|
|||
{% endhighlight %}
|
||||
|
||||
{% endtabs %}
|
||||
|
||||
## Removing the table rows
|
||||
|
||||
You can remove a particular table row from a table rows collection by its instance or by its index position in the collection. The following code example shows how to remove a particular row from table in the Word document.
|
||||
|
||||
{% tabs %}
|
||||
|
||||
{% highlight c# %}
|
||||
//Creates an instance of WordDocument class
|
||||
WordDocument document = new WordDocument("Template.docx");
|
||||
//Accesses the instance of the first section in the Word document
|
||||
WSection section = document.Sections[0];
|
||||
//Accesses the instance of the first table in the section
|
||||
WTable table = section.Tables[0] as WTable;
|
||||
//Remove particular row from the table
|
||||
table.Rows.RemoveAt(6);
|
||||
//Saves the Word document
|
||||
document.Save("Sample.docx", FormatType.Docx);
|
||||
//Closes the document
|
||||
document.Close();
|
||||
{% endhighlight %}
|
||||
|
||||
{% highlight vb.net %}
|
||||
'Creates an instance of WordDocument class
|
||||
Dim document As New WordDocument("Template.docx")
|
||||
'Accesses the instance of the first section in the Word document
|
||||
Dim section As WSection = document.Sections(0)
|
||||
'Accesses the instance of the first table in the section
|
||||
Dim table As WTable = TryCast(section.Tables(0), WTable)
|
||||
'Remove particular row from the table
|
||||
table.Rows.RemoveAt(6)
|
||||
'Saves the Word document
|
||||
document.Save("Sample.docx", FormatType.Docx)
|
||||
'Closes the document
|
||||
document.Close()
|
||||
{% endhighlight %}
|
||||
|
||||
{% highlight UWP %}
|
||||
//Creates an instance of WordDocument class
|
||||
Assembly assembly = typeof(App).GetTypeInfo().Assembly;
|
||||
WordDocument document = new WordDocument(assembly.GetManifestResourceStream("Sample.Assets.Template.docx"), FormatType.Docx);
|
||||
//Accesses the instance of the first section in the Word document
|
||||
WSection section = document.Sections[0];
|
||||
//Accesses the instance of the first table in the section
|
||||
WTable table = section.Tables[0] as WTable;
|
||||
//Remove particular row from the table
|
||||
table.Rows.RemoveAt(6);
|
||||
//Saves the Word file to MemoryStream
|
||||
MemoryStream stream = new MemoryStream();
|
||||
await document.SaveAsync(stream, FormatType.Docx);
|
||||
//Saves the stream as Word file in local machine
|
||||
Save(stream, "Sample.docx");
|
||||
//Closes the document
|
||||
document.Close();
|
||||
//Please refer the below link to save Word document in UWP platform
|
||||
//https://help.syncfusion.com/file-formats/docio/create-word-document-in-uwp#save-word-document-in-uwp
|
||||
{% endhighlight %}
|
||||
|
||||
{% highlight ASP.NET Core %}
|
||||
//Creates an instance of WordDocument class
|
||||
FileStream fileStreamPath = new FileStream("Template.docx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
WordDocument document = new WordDocument(fileStreamPath);
|
||||
//Accesses the instance of the first section in the Word document
|
||||
WSection section = document.Sections[0];
|
||||
//Accesses the instance of the first table in the section
|
||||
WTable table = section.Tables[0] as WTable;
|
||||
//Remove particular row from the table
|
||||
table.Rows.RemoveAt(6);
|
||||
//Saves the Word document to MemoryStream
|
||||
MemoryStream stream = new MemoryStream();
|
||||
document.Save(stream, FormatType.Docx);
|
||||
//Closes the document
|
||||
document.Close();
|
||||
stream.Position = 0;
|
||||
//Download Word document in the browser
|
||||
return File(stream, "application/msword", "Sample.docx");
|
||||
{% endhighlight %}
|
||||
|
||||
{% highlight Xamarin %}
|
||||
//Creates an instance of WordDocument class
|
||||
Assembly assembly = typeof(App).GetTypeInfo().Assembly;
|
||||
WordDocument document = new WordDocument(assembly.GetManifestResourceStream("GettingStarted.Assets.Template.docx"), FormatType.Docx);
|
||||
//Accesses the instance of the first section in the Word document
|
||||
WSection section = document.Sections[0];
|
||||
//Accesses the instance of the first table in the section
|
||||
WTable table = section.Tables[0] as WTable;
|
||||
//Remove particular row from the table
|
||||
table.Rows.RemoveAt(6);
|
||||
//Saves the Word document to MemoryStream
|
||||
MemoryStream stream = new MemoryStream();
|
||||
document.Save(stream, FormatType.Docx);
|
||||
//Save the stream as a file in the device and invoke it for viewing
|
||||
Xamarin.Forms.DependencyService.Get<ISave>().SaveAndView("Sample.docx", "application/msword", stream);
|
||||
//Closes the document
|
||||
document.Close();
|
||||
//Please download the helper files from the below link to save the stream as file and open the file for viewing in Xamarin platform
|
||||
//https://help.syncfusion.com/file-formats/docio/create-word-document-in-xamarin#helper-files-for-xamarin
|
||||
{% endhighlight %}
|
||||
|
||||
{% endtabs %}
|
|
@ -7,7 +7,7 @@ documentation: UG
|
|||
---
|
||||
# Create or Generate PDF file in C# and VB.NET
|
||||
|
||||
To create a PDF document from scratch and saving it to disk or stream, please add the required assemblies in order to use Essential PDF. [Refer here for assemblies required](/File-Formats/PDF/Assemblies-Required).
|
||||
To create a [.NET PDF](https://www.syncfusion.com/pdf-framework/net) document from scratch and saving it to disk or stream, please add the required assemblies in order to use Essential PDF. [Refer here for assemblies required](/File-Formats/PDF/Assemblies-Required).
|
||||
|
||||
N> 1. Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/license-key) to know about registering Syncfusion license key in your application to use our components.
|
||||
N> 2. Unlike System.Drawing APIs all the units are measured in point instead of pixel.
|
||||
|
@ -1646,3 +1646,5 @@ return File(stream, contentType, fileName);
|
|||
{% endhighlight %}
|
||||
|
||||
{% endtabs %}
|
||||
|
||||
N> You can also explore our [.NET PDF framework](https://www.syncfusion.com/demos/fileformats/pdf-library) demo that shows how to create and modify PDF files from C# with just five lines of code on different platforms.
|
|
@ -0,0 +1,510 @@
|
|||
---
|
||||
title: Create or Generate PDF file in WinUI | Syncfusion
|
||||
description: Learn how to create or generate a PDF file in WinUI with easy steps using Syncfusion .NET Core PDF library without depending on Adobe.
|
||||
platform: file-formats
|
||||
control: PDF
|
||||
documentation: UG
|
||||
---
|
||||
|
||||
# Create PDF file in WinUI
|
||||
|
||||
Syncfusion Essential PDF is a [.NET Core PDF library](https://www.syncfusion.com/pdf-framework/net-core/pdf-library) used to create, read, and edit **PDF** documents. Using this library, you can **create a PDF document in WinUI**.
|
||||
|
||||
**Prerequisites:**
|
||||
To use the WinUI 3 project templates, install the Windows App SDK extension for Visual Studio. For more details, refer [here](https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/set-up-your-development-environment).
|
||||
|
||||
|
||||
## WinUI Desktop app
|
||||
|
||||
1.Create a new C# WinUI Desktop app. Select Blank App, Packaged with WAP (WinUI 3 in Desktop) from the template and click the **Next** button.
|
||||
|
||||
![Create the WinUI Desktop app in Visual Studio](WinUI_Images/Create_Desktop_Project.png)
|
||||
|
||||
2.Enter the project name and click **Create**.
|
||||
|
||||
![Create a project name for your new project](WinUI_Images/Desktop_Configure.png)
|
||||
|
||||
3.Set the Target version to Windows 10, version 2004 (build 19041) and the Minimum version to Windows 10, version 1809 (build 17763) and then click **OK**.
|
||||
|
||||
![Set the target version](WinUI_Images/Target_Version.png)
|
||||
|
||||
4.Install the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core) NuGet package as a reference to your project from the [NuGet.org](https://www.nuget.org/).
|
||||
|
||||
![Install the PDF .NET Core NuGet package](WinUI_Images/Install_Nuget.png)
|
||||
|
||||
N> Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to add the "Syncfusion.Licensing" assembly reference and include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/license-key) to know about registering a Syncfusion license key in your application to use our components.
|
||||
|
||||
5.Add a new button to the **MainWindow.xaml** as shown below.
|
||||
|
||||
{% tabs %}
|
||||
|
||||
{% highlight c# %}
|
||||
|
||||
<Window
|
||||
x:Class="CreatePdfDemoSample.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:CreatePdfDemoSample"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Button x:Name="button" Click="createPdf_Click">Create PDF</Button>
|
||||
</StackPanel>
|
||||
</Window>
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
{% endtabs %}
|
||||
|
||||
6.Include the following namespaces in the **MainWindow.xaml.cs** file.
|
||||
|
||||
{% tabs %}
|
||||
|
||||
{% highlight c# %}
|
||||
|
||||
using Syncfusion.Pdf;
|
||||
using Syncfusion.Pdf.Graphics;
|
||||
using Syncfusion.Pdf.Grid;
|
||||
using Syncfusion.Drawing;
|
||||
using System.Reflection;
|
||||
using System.Xml.Linq;
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
{% endtabs %}
|
||||
|
||||
7.Add a new action method **createPdf_Click** in MainWindow.xaml.cs and include the below code snippet to **create a PDF document**. Include helper classes, methods and required files in the assets folder.
|
||||
|
||||
{% tabs %}
|
||||
|
||||
{% highlight c# %}
|
||||
|
||||
//Create a new PDF document.
|
||||
PdfDocument document = new PdfDocument();
|
||||
document.PageSettings.Orientation = PdfPageOrientation.Landscape;
|
||||
document.PageSettings.Margins.All = 50;
|
||||
|
||||
//Add a page to the document.
|
||||
PdfPage page = document.Pages.Add();
|
||||
|
||||
//Create PDF graphics for the page.
|
||||
PdfGraphics graphics = page.Graphics;
|
||||
|
||||
//Create a text element with the text and font.
|
||||
PdfTextElement element = new PdfTextElement("Northwind Traders\n67, rue des Cinquante Otages,\nElgin,\nUnites States.");
|
||||
element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12);
|
||||
element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
|
||||
PdfLayoutResult result = element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200));
|
||||
|
||||
//Draw the image to a PDF page with the specified size
|
||||
Stream imgStream = typeof(MainWindow).GetTypeInfo().Assembly.GetManifestResourceStream("CreatePdfDemoSample.Assets.logo.jpg");
|
||||
PdfImage img = new PdfBitmap(imgStream);
|
||||
graphics.DrawImage(img, new RectangleF(graphics.ClientSize.Width - 200, result.Bounds.Y, 190, 45));
|
||||
PdfFont subHeadingFont = new PdfStandardFont(PdfFontFamily.TimesRoman, 14);
|
||||
graphics.DrawRectangle(new PdfSolidBrush(new PdfColor(126, 151, 173)), new RectangleF(0, result.Bounds.Bottom + 40, graphics.ClientSize.Width, 30));
|
||||
|
||||
//Create a text element with the text and font.
|
||||
element = new PdfTextElement("INVOICE", subHeadingFont);
|
||||
element.Brush = PdfBrushes.White;
|
||||
result = element.Draw(page, new PointF(10, result.Bounds.Bottom + 48));
|
||||
string currentDate = "DATE " + DateTime.Now.ToString("MM/dd/yyyy");
|
||||
SizeF textSize = subHeadingFont.MeasureString(currentDate);
|
||||
graphics.DrawString(currentDate, subHeadingFont, element.Brush, new PointF(graphics.ClientSize.Width - textSize.Width - 10, result.Bounds.Y));
|
||||
|
||||
//Create a text element and draw it to a PDF page.
|
||||
element = new PdfTextElement("BILL TO ", new PdfStandardFont(PdfFontFamily.TimesRoman, 10));
|
||||
element.Brush = new PdfSolidBrush(new PdfColor(126, 155, 203));
|
||||
result = element.Draw(page, new PointF(10, result.Bounds.Bottom + 25));
|
||||
graphics.DrawLine(new PdfPen(new PdfColor(126, 151, 173), 0.70f), new PointF(0, result.Bounds.Bottom + 3), new PointF(graphics.ClientSize.Width, result.Bounds.Bottom + 3));
|
||||
|
||||
//Get products list to create invoice.
|
||||
IEnumerable<CustOrders> products = Orders.GetProducts();
|
||||
|
||||
List<CustOrders> list = new List<CustOrders>();
|
||||
foreach (CustOrders cust in products)
|
||||
{
|
||||
list.Add(cust);
|
||||
}
|
||||
var reducedList = list.Select(f => new { f.ProductID, f.ProductName, f.Quantity, f.UnitPrice, f.Discount, f.Price }).ToList();
|
||||
|
||||
//Get the shipping address details.
|
||||
IEnumerable<ShipDetails> shipDetails = Orders.GetShipDetails();]]
|
||||
GetShipDetails(shipDetails);
|
||||
|
||||
//Create a text element and draw it to a PDF page.
|
||||
element = new PdfTextElement(shipName, new PdfStandardFont(PdfFontFamily.TimesRoman, 10));
|
||||
element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
|
||||
result = element.Draw(page, new RectangleF(10, result.Bounds.Bottom + 5, graphics.ClientSize.Width / 2, 100));
|
||||
|
||||
//Create a text element and draw it to a PDF page.
|
||||
element = new PdfTextElement(string.Format("{0}, {1}, {2}", address, shipCity, shipCountry), new PdfStandardFont(PdfFontFamily.TimesRoman, 10));
|
||||
element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
|
||||
result = element.Draw(page, new RectangleF(10, result.Bounds.Bottom + 3, graphics.ClientSize.Width / 2, 100));
|
||||
|
||||
//Create a PDF grid with the product details.
|
||||
PdfGrid grid = new PdfGrid();
|
||||
grid.DataSource = reducedList;
|
||||
|
||||
//Initialize PdfGridCellStyle and set the border color.
|
||||
PdfGridCellStyle cellStyle = new PdfGridCellStyle();
|
||||
cellStyle.Borders.All = PdfPens.White;
|
||||
cellStyle.Borders.Bottom = new PdfPen(new PdfColor(217, 217, 217), 0.70f);
|
||||
cellStyle.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12f);
|
||||
cellStyle.TextBrush = new PdfSolidBrush(new PdfColor(131, 130, 136));
|
||||
|
||||
//Initialize PdfGridCellStyle and set the header style.
|
||||
PdfGridCellStyle headerStyle = new PdfGridCellStyle();
|
||||
headerStyle.Borders.All = new PdfPen(new PdfColor(126, 151, 173));
|
||||
headerStyle.BackgroundBrush = new PdfSolidBrush(new PdfColor(126, 151, 173));
|
||||
headerStyle.TextBrush = PdfBrushes.White;
|
||||
headerStyle.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 14f, PdfFontStyle.Regular);
|
||||
|
||||
PdfGridRow header = grid.Headers[0];
|
||||
for (int i = 0; i < header.Cells.Count; i++)
|
||||
{
|
||||
if (i == 0 || i == 1)
|
||||
header.Cells[i].StringFormat = new PdfStringFormat(PdfTextAlignment.Left, PdfVerticalAlignment.Middle);
|
||||
else
|
||||
header.Cells[i].StringFormat = new PdfStringFormat(PdfTextAlignment.Right, PdfVerticalAlignment.Middle);
|
||||
}
|
||||
header.ApplyStyle(headerStyle);
|
||||
|
||||
foreach (PdfGridRow row in grid.Rows)
|
||||
{
|
||||
row.ApplyStyle(cellStyle);
|
||||
for (int i = 0; i < row.Cells.Count; i++)
|
||||
{
|
||||
//Create and customize the string formats
|
||||
PdfGridCell cell = row.Cells[i];
|
||||
if (i == 1)
|
||||
cell.StringFormat = new PdfStringFormat(PdfTextAlignment.Left, PdfVerticalAlignment.Middle);
|
||||
else if (i == 0)
|
||||
cell.StringFormat = new PdfStringFormat(PdfTextAlignment.Center, PdfVerticalAlignment.Middle);
|
||||
else
|
||||
cell.StringFormat = new PdfStringFormat(PdfTextAlignment.Right, PdfVerticalAlignment.Middle);
|
||||
|
||||
if (i > 2)
|
||||
{
|
||||
float val = float.MinValue;
|
||||
float.TryParse(cell.Value.ToString(), out val);
|
||||
cell.Value = '$' + val.ToString("0.00");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
grid.Columns[0].Width = 100;
|
||||
grid.Columns[1].Width = 200;
|
||||
|
||||
//Set properties to paginate the grid.
|
||||
PdfGridLayoutFormat layoutFormat = new PdfGridLayoutFormat();
|
||||
layoutFormat.Layout = PdfLayoutType.Paginate;
|
||||
|
||||
//Draw a grid on the page of the PDF document.
|
||||
PdfGridLayoutResult gridResult = grid.Draw(page, new RectangleF(new PointF(0, result.Bounds.Bottom + 40), new SizeF(graphics.ClientSize.Width, graphics.ClientSize.Height - 100)), layoutFormat);
|
||||
float pos = 0.0f;
|
||||
for (int i = 0; i < grid.Columns.Count - 1; i++)
|
||||
pos += grid.Columns[i].Width;
|
||||
|
||||
PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 14f);
|
||||
|
||||
GetTotalPrice(products);
|
||||
|
||||
gridResult.Page.Graphics.DrawString("Total Due", font, new PdfSolidBrush(new PdfColor(126, 151, 173)), new RectangleF(new PointF(pos, gridResult.Bounds.Bottom + 20), new SizeF(grid.Columns[3].Width - pos, 20)), new PdfStringFormat(PdfTextAlignment.Right));
|
||||
gridResult.Page.Graphics.DrawString("Thank you for your business!", new PdfStandardFont(PdfFontFamily.TimesRoman, 12), new PdfSolidBrush(new PdfColor(89, 89, 93)), new PointF(pos - 55, gridResult.Bounds.Bottom + 60));
|
||||
pos += grid.Columns[4].Width;
|
||||
gridResult.Page.Graphics.DrawString('$' + string.Format("{0:N2}", total), font, new PdfSolidBrush(new PdfColor(131, 130, 136)), new RectangleF(new PointF(pos, gridResult.Bounds.Bottom + 20), new SizeF(grid.Columns[4].Width - pos, 20)), new PdfStringFormat(PdfTextAlignment.Right));
|
||||
|
||||
string filePath = Path.GetFullPath("Sample.pdf");
|
||||
|
||||
//Save the PDF document to stream.
|
||||
using (FileStream outputStream = new FileStream(filePath, FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite))
|
||||
{
|
||||
document.Save(outputStream);
|
||||
document.Close();
|
||||
}
|
||||
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
{% endtabs %}
|
||||
|
||||
A complete working example of creating a PDF document in the WinUI Desktop app can be downloaded from this [link](https://www.syncfusion.com/downloads/support/directtrac/general/ze/CreatePdfDemoSample-1441042814).
|
||||
|
||||
By executing the program, you will get the **PDF document** as follows.
|
||||
|
||||
![WinUI Desktop output PDF document](WinUI_Images/GettingStartedOutput.png)
|
||||
|
||||
## WinUI UWP app
|
||||
|
||||
1.Create a new C# WinUI UWP app. Select Blank App (WinUI 3 in UWP)from the template and **click** the Next button.
|
||||
|
||||
![Create the WinUI UWP app in Visual Studio](WinUI_Images/Create_UWP_Project.png)
|
||||
|
||||
N> To get the UWP Experimental project templates and build UWP apps with WinUI 3, you should download the [Windows App SDK Experimental Extension](https://aka.ms/projectreunion/previewdownload) for Visual Studio.
|
||||
|
||||
2.Enter the project name and click **Create**.
|
||||
|
||||
![Create a project name for your new project](WinUI_Images/UWP_Configure.png)
|
||||
|
||||
3.Set the Target version to Windows 10, version 2004 (build 19041) and the Minimum version to Windows 10, version 1809 (build 17763) and then click **OK**.
|
||||
|
||||
![Set the target version](WinUI_Images/Target_Version.png)
|
||||
|
||||
4.Install the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core) NuGet package as a reference to your project from the [NuGet.org](https://www.nuget.org/).
|
||||
|
||||
![Install the PDF .NET Core NuGet package](WinUI_Images/Install_Nuget.png)
|
||||
|
||||
N> Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to add the "Syncfusion.Licensing" assembly reference and include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/license-key) to know about registering a Syncfusion license key in your application to use our components.
|
||||
|
||||
5.Add a new button in the **MainPage.xaml** as shown below.
|
||||
|
||||
{% tabs %}
|
||||
|
||||
{% highlight c# %}
|
||||
|
||||
<Page
|
||||
x:Class="CreatePdfDemoSampleUwp.MainPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:CreatePdfDemoSampleUwp"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Button x:Name="button" Click="createPdf_Click">Create PDF</Button>
|
||||
</StackPanel>
|
||||
</Page>
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
{% endtabs %}
|
||||
|
||||
6.Include the following namespaces in the **MainPage.xaml.cs** file.
|
||||
|
||||
{% tabs %}
|
||||
|
||||
{% highlight c# %}
|
||||
|
||||
using Syncfusion.Pdf;
|
||||
using Syncfusion.Pdf.Graphics;
|
||||
using Syncfusion.Pdf.Grid;
|
||||
using Syncfusion.Drawing;
|
||||
using System.Reflection;
|
||||
using System.Xml.Linq;
|
||||
using Windows.Storage;
|
||||
using Windows.Storage.Pickers;
|
||||
using Windows.Storage.Streams;
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
{% endtabs %}
|
||||
|
||||
7.Add a new action method **createPdf_Click** in MainWindow.xaml.cs and include the below code snippet to **create a PDF document**. Include helper classes, methods and required files in the assets folder.
|
||||
|
||||
{% tabs %}
|
||||
|
||||
{% highlight c# %}
|
||||
|
||||
//Create a new PDF document.
|
||||
PdfDocument document = new PdfDocument();
|
||||
document.PageSettings.Orientation = PdfPageOrientation.Landscape;
|
||||
document.PageSettings.Margins.All = 50;
|
||||
|
||||
//Add a page to the document.
|
||||
PdfPage page = document.Pages.Add();
|
||||
|
||||
//Create PDF graphics for the page.
|
||||
PdfGraphics graphics = page.Graphics;
|
||||
|
||||
//Create a text element with the text and font.
|
||||
PdfTextElement element = new PdfTextElement("Northwind Traders\n67, rue des Cinquante Otages,\nElgin,\nUnites States.");
|
||||
element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12);
|
||||
element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
|
||||
PdfLayoutResult result = element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200));
|
||||
|
||||
//Draw the image to a PDF page with the specified size
|
||||
Stream imgStream = typeof(MainWindow).GetTypeInfo().Assembly.GetManifestResourceStream("CreatePdfDemoSample.Assets.logo.jpg");
|
||||
PdfImage img = new PdfBitmap(imgStream);
|
||||
graphics.DrawImage(img, new RectangleF(graphics.ClientSize.Width - 200, result.Bounds.Y, 190, 45));
|
||||
PdfFont subHeadingFont = new PdfStandardFont(PdfFontFamily.TimesRoman, 14);
|
||||
graphics.DrawRectangle(new PdfSolidBrush(new PdfColor(126, 151, 173)), new RectangleF(0, result.Bounds.Bottom + 40, graphics.ClientSize.Width, 30));
|
||||
|
||||
//Create a text element with the text and font.
|
||||
element = new PdfTextElement("INVOICE", subHeadingFont);
|
||||
element.Brush = PdfBrushes.White;
|
||||
result = element.Draw(page, new PointF(10, result.Bounds.Bottom + 48));
|
||||
string currentDate = "DATE " + DateTime.Now.ToString("MM/dd/yyyy");
|
||||
SizeF textSize = subHeadingFont.MeasureString(currentDate);
|
||||
graphics.DrawString(currentDate, subHeadingFont, element.Brush, new PointF(graphics.ClientSize.Width - textSize.Width - 10, result.Bounds.Y));
|
||||
|
||||
//Create a text element and draw it to a PDF page.
|
||||
element = new PdfTextElement("BILL TO ", new PdfStandardFont(PdfFontFamily.TimesRoman, 10));
|
||||
element.Brush = new PdfSolidBrush(new PdfColor(126, 155, 203));
|
||||
result = element.Draw(page, new PointF(10, result.Bounds.Bottom + 25));
|
||||
graphics.DrawLine(new PdfPen(new PdfColor(126, 151, 173), 0.70f), new PointF(0, result.Bounds.Bottom + 3), new PointF(graphics.ClientSize.Width, result.Bounds.Bottom + 3));
|
||||
|
||||
//Get products list to create invoice.
|
||||
IEnumerable<CustOrders> products = Orders.GetProducts();
|
||||
|
||||
List<CustOrders> list = new List<CustOrders>();
|
||||
foreach (CustOrders cust in products)
|
||||
{
|
||||
list.Add(cust);
|
||||
}
|
||||
var reducedList = list.Select(f => new { f.ProductID, f.ProductName, f.Quantity, f.UnitPrice, f.Discount, f.Price }).ToList();
|
||||
|
||||
//Get the shipping address details.
|
||||
IEnumerable<ShipDetails> shipDetails = Orders.GetShipDetails();]]
|
||||
GetShipDetails(shipDetails);
|
||||
|
||||
//Create a text element and draw it to a PDF page.
|
||||
element = new PdfTextElement(shipName, new PdfStandardFont(PdfFontFamily.TimesRoman, 10));
|
||||
element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
|
||||
result = element.Draw(page, new RectangleF(10, result.Bounds.Bottom + 5, graphics.ClientSize.Width / 2, 100));
|
||||
|
||||
//Create a text element and draw it to a PDF page.
|
||||
element = new PdfTextElement(string.Format("{0}, {1}, {2}", address, shipCity, shipCountry), new PdfStandardFont(PdfFontFamily.TimesRoman, 10));
|
||||
element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
|
||||
result = element.Draw(page, new RectangleF(10, result.Bounds.Bottom + 3, graphics.ClientSize.Width / 2, 100));
|
||||
|
||||
//Create a PDF grid with the product details.
|
||||
PdfGrid grid = new PdfGrid();
|
||||
grid.DataSource = reducedList;
|
||||
|
||||
//Initialize PdfGridCellStyle and set the border color.
|
||||
PdfGridCellStyle cellStyle = new PdfGridCellStyle();
|
||||
cellStyle.Borders.All = PdfPens.White;
|
||||
cellStyle.Borders.Bottom = new PdfPen(new PdfColor(217, 217, 217), 0.70f);
|
||||
cellStyle.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12f);
|
||||
cellStyle.TextBrush = new PdfSolidBrush(new PdfColor(131, 130, 136));
|
||||
|
||||
//Initialize PdfGridCellStyle and set the header style.
|
||||
PdfGridCellStyle headerStyle = new PdfGridCellStyle();
|
||||
headerStyle.Borders.All = new PdfPen(new PdfColor(126, 151, 173));
|
||||
headerStyle.BackgroundBrush = new PdfSolidBrush(new PdfColor(126, 151, 173));
|
||||
headerStyle.TextBrush = PdfBrushes.White;
|
||||
headerStyle.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 14f, PdfFontStyle.Regular);
|
||||
|
||||
PdfGridRow header = grid.Headers[0];
|
||||
for (int i = 0; i < header.Cells.Count; i++)
|
||||
{
|
||||
if (i == 0 || i == 1)
|
||||
header.Cells[i].StringFormat = new PdfStringFormat(PdfTextAlignment.Left, PdfVerticalAlignment.Middle);
|
||||
else
|
||||
header.Cells[i].StringFormat = new PdfStringFormat(PdfTextAlignment.Right, PdfVerticalAlignment.Middle);
|
||||
}
|
||||
header.ApplyStyle(headerStyle);
|
||||
|
||||
foreach (PdfGridRow row in grid.Rows)
|
||||
{
|
||||
row.ApplyStyle(cellStyle);
|
||||
for (int i = 0; i < row.Cells.Count; i++)
|
||||
{
|
||||
//Create and customize the string formats
|
||||
PdfGridCell cell = row.Cells[i];
|
||||
if (i == 1)
|
||||
cell.StringFormat = new PdfStringFormat(PdfTextAlignment.Left, PdfVerticalAlignment.Middle);
|
||||
else if (i == 0)
|
||||
cell.StringFormat = new PdfStringFormat(PdfTextAlignment.Center, PdfVerticalAlignment.Middle);
|
||||
else
|
||||
cell.StringFormat = new PdfStringFormat(PdfTextAlignment.Right, PdfVerticalAlignment.Middle);
|
||||
|
||||
if (i > 2)
|
||||
{
|
||||
float val = float.MinValue;
|
||||
float.TryParse(cell.Value.ToString(), out val);
|
||||
cell.Value = '$' + val.ToString("0.00");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
grid.Columns[0].Width = 100;
|
||||
grid.Columns[1].Width = 200;
|
||||
|
||||
//Set properties to paginate the grid.
|
||||
PdfGridLayoutFormat layoutFormat = new PdfGridLayoutFormat();
|
||||
layoutFormat.Layout = PdfLayoutType.Paginate;
|
||||
|
||||
//Draw a grid on the page of the PDF document.
|
||||
PdfGridLayoutResult gridResult = grid.Draw(page, new RectangleF(new PointF(0, result.Bounds.Bottom + 40), new SizeF(graphics.ClientSize.Width, graphics.ClientSize.Height - 100)), layoutFormat);
|
||||
float pos = 0.0f;
|
||||
for (int i = 0; i < grid.Columns.Count - 1; i++)
|
||||
pos += grid.Columns[i].Width;
|
||||
|
||||
PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 14f);
|
||||
|
||||
GetTotalPrice(products);
|
||||
|
||||
gridResult.Page.Graphics.DrawString("Total Due", font, new PdfSolidBrush(new PdfColor(126, 151, 173)), new RectangleF(new PointF(pos, gridResult.Bounds.Bottom + 20), new SizeF(grid.Columns[3].Width - pos, 20)), new PdfStringFormat(PdfTextAlignment.Right));
|
||||
gridResult.Page.Graphics.DrawString("Thank you for your business!", new PdfStandardFont(PdfFontFamily.TimesRoman, 12), new PdfSolidBrush(new PdfColor(89, 89, 93)), new PointF(pos - 55, gridResult.Bounds.Bottom + 60));
|
||||
pos += grid.Columns[4].Width;
|
||||
gridResult.Page.Graphics.DrawString('$' + string.Format("{0:N2}", total), font, new PdfSolidBrush(new PdfColor(131, 130, 136)), new RectangleF(new PointF(pos, gridResult.Bounds.Bottom + 20), new SizeF(grid.Columns[4].Width - pos, 20)), new PdfStringFormat(PdfTextAlignment.Right));
|
||||
|
||||
//Save the PDF document to MemoryStream.
|
||||
using (MemoryStream stream = new MemoryStream())
|
||||
{
|
||||
document.Save(stream);
|
||||
document.Close();
|
||||
//Save the stream as a PDF document file in the local machine.
|
||||
Save(stream, "Sample.pdf");
|
||||
}
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
{% endtabs %}
|
||||
|
||||
A complete working example of creating a PDF document in the WinUI UWP app can be downloaded from this [link](https://www.syncfusion.com/downloads/support/directtrac/general/ze/CreatePdfDemoSampleUwp-634488365).
|
||||
|
||||
By executing the program, you will get the **PDF document** as follows.
|
||||
|
||||
![WinUI UWP output PDF document](WinUI_Images/GettingStartedOutput.png)
|
||||
|
||||
### Save PDF document in UWP
|
||||
|
||||
Use the following code snippet to save and open the PDF document as a file using FileSavePicker.
|
||||
|
||||
{% tabs %}
|
||||
|
||||
{% highlight c# %}
|
||||
|
||||
async void Save(MemoryStream streams, string filename)
|
||||
{
|
||||
streams.Position = 0;
|
||||
StorageFile stFile;
|
||||
if (!(Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")))
|
||||
{
|
||||
FileSavePicker savePicker = new FileSavePicker();
|
||||
savePicker.DefaultFileExtension = ".pdf";
|
||||
savePicker.SuggestedFileName = filename;
|
||||
savePicker.FileTypeChoices.Add("PDF Documents", new List<string>() { ".pdf" });
|
||||
stFile = await savePicker.PickSaveFileAsync();
|
||||
}
|
||||
else
|
||||
{
|
||||
StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
|
||||
stFile = await local.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting);
|
||||
}
|
||||
if (stFile != null)
|
||||
{
|
||||
using (IRandomAccessStream zipStream = await stFile.OpenAsync(FileAccessMode.ReadWrite))
|
||||
{
|
||||
//Write compressed data from memory to file.
|
||||
using (Stream outstream = zipStream.AsStreamForWrite())
|
||||
{
|
||||
byte[] buffer = streams.ToArray();
|
||||
outstream.Write(buffer, 0, buffer.Length);
|
||||
outstream.Flush();
|
||||
}
|
||||
}
|
||||
}
|
||||
//Launch the saved PDF file.
|
||||
await Windows.System.Launcher.LaunchFileAsync(stFile);
|
||||
}
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
{% endtabs %}
|
|
@ -5,9 +5,9 @@ platform: file-formats
|
|||
control: PDF
|
||||
documentation: UG
|
||||
---
|
||||
# Merge Documents
|
||||
# Merge PDF Documents using .NET PDF Library
|
||||
|
||||
Essential PDF supports merging multiple PDF documents from disk and stream.
|
||||
Essential PDF supports [merging multiple PDF](https://www.syncfusion.com/pdf-framework/net/pdf-library/split-merge-pdf) documents from disk and stream.
|
||||
|
||||
## Merging multiple documents from disk and stream
|
||||
|
||||
|
|
|
@ -5,15 +5,15 @@ platform: file-formats
|
|||
control: PDF
|
||||
documentation: UG
|
||||
---
|
||||
# Overview of Essential PDF
|
||||
# Overview of PDF Framework
|
||||
|
||||
Essential PDF is a feature rich .NET PDF class library developed with 100% managed C# code that can be used to create, read and write PDF. The library can be used in Windows Forms, WPF, ASP.NET Web Forms, ASP.NET MVC, ASP.NET Core, Blazor, UWP, Xamarin, Flutter applications and Unity platform without the dependency of Adobe Acrobat. The creation of PDF follows the most popular PDF 1.7 (ISO 32000-1) and latest PDF 2.0 (ISO 32000-2) specifications.
|
||||
The PDF framework is a feature rich [.NET PDF class library](https://www.syncfusion.com/pdf-framework/net) developed with 100% managed C# code that can be used to create, read and write PDF. The library can be used in [Windows Forms](https://www.syncfusion.com/pdf-framework/net), [WPF](https://www.syncfusion.com/pdf-framework/net), [ASP.NET Web Forms](https://www.syncfusion.com/pdf-framework/net), [ASP.NET MVC](https://www.syncfusion.com/pdf-framework/net), [ASP.NET Core](https://www.syncfusion.com/pdf-framework/net-core), [Blazor](https://www.syncfusion.com/pdf-framework/blazor), [UWP](https://www.syncfusion.com/pdf-framework/uwp), [Xamarin](https://www.syncfusion.com/pdf-framework/xamarin), [Flutter](https://www.syncfusion.com/flutter-widgets/pdf-library) applications and Unity platform without the dependency of Adobe Acrobat. The creation of PDF follows the most popular PDF 1.7 (ISO 32000-1) and latest PDF 2.0 (ISO 32000-2) specifications.
|
||||
|
||||
## Key Features of Essential PDF
|
||||
|
||||
The following list shows the key features available in the Essential PDF.
|
||||
|
||||
* Support to [create PDF files](https://help.syncfusion.com/file-formats/pdf/getting-started) from scratch.
|
||||
* Support to [create PDF files](https://help.syncfusion.com/file-formats/pdf/create-pdf-file-in-c-sharp-vb-net) from scratch.
|
||||
* Support to add [text](https://help.syncfusion.com/file-formats/pdf/working-with-text), various formats of [images](https://help.syncfusion.com/file-formats/pdf/working-with-images), [tables](https://help.syncfusion.com/file-formats/pdf/working-with-tables) and [shapes](https://help.syncfusion.com/file-formats/pdf/working-with-shapes).
|
||||
* Support for [creation](https://help.syncfusion.com/file-formats/pdf/working-with-forms#creating-a-new-pdf-form), [filling](https://help.syncfusion.com/file-formats/pdf/working-with-forms#filling-form-fields-in-an-existing-pdf-document) and [flattening](https://help.syncfusion.com/file-formats/pdf/working-with-forms#removing-editing-capability-of-form-fields) forms (AcroForms and XFA).
|
||||
* Open, modify and save existing PDF files.
|
||||
|
|
После Ширина: | Высота: | Размер: 89 KiB |
После Ширина: | Высота: | Размер: 75 KiB |
После Ширина: | Высота: | Размер: 40 KiB |
После Ширина: | Высота: | Размер: 45 KiB |
После Ширина: | Высота: | Размер: 50 KiB |
После Ширина: | Высота: | Размер: 20 KiB |
После Ширина: | Высота: | Размер: 37 KiB |
|
@ -7,7 +7,7 @@ documentation: UG
|
|||
---
|
||||
# Working with Annotations
|
||||
|
||||
Essential PDF provides support for interactive annotations.
|
||||
Essential PDF provides support for interactive [annotations](https://www.syncfusion.com/pdf-framework/net/pdf-library/pdf-annotation).
|
||||
|
||||
You can add, delete and modify the annotation from the PDF documents.
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ documentation: UG
|
|||
---
|
||||
# Working with Compression
|
||||
|
||||
Essential PDF allows you to compress the PDF document and thereby reduce the file size in the following three ways.
|
||||
Essential PDF allows you to [compress the PDF](https://www.syncfusion.com/pdf-framework/net/pdf-library/compress-pdf) document and thereby reduce the file size in the following three ways.
|
||||
|
||||
1. Compress an existing PDF document
|
||||
2. Content compression for a new document
|
||||
|
|
|
@ -9,7 +9,7 @@ documentation: UG
|
|||
|
||||
## Adding a digital signature
|
||||
|
||||
The Essential PDF allows you to add a digital signature to the PDF document. To add a digital signature, you need a certificate with private keys. The Essential PDF provides support for digital signature by using the PFX files, Hardware Security Module (HSM), Online Certificate Status Protocol (OCSP), Certificate Revocation List (CRL), Windows Certificate Store, and supports signatures using the Elliptic Curve Digital Signature Algorithm (ECDSA).
|
||||
The Essential PDF allows you to add a [digital signature](https://www.syncfusion.com/pdf-framework/net/pdf-library/digital-signature-timestamp-pdf) to the PDF document. To add a digital signature, you need a certificate with private keys. The Essential PDF provides support for digital signature by using the PFX files, Hardware Security Module (HSM), Online Certificate Status Protocol (OCSP), Certificate Revocation List (CRL), Windows Certificate Store, and supports signatures using the Elliptic Curve Digital Signature Algorithm (ECDSA).
|
||||
|
||||
The following code example explains how to add a digital signature to the PDF document.
|
||||
{% tabs %}
|
||||
|
|
|
@ -7,7 +7,7 @@ documentation: UG
|
|||
---
|
||||
# Working with Security
|
||||
|
||||
Essential PDF allows you to protect the PDF document using encryption and set permission to the PDF document operations like printing, editing, copy content etc. using user password and owner password. Two types of encryption algorithms are available
|
||||
Essential PDF allows you to [protect the PDF document](https://www.syncfusion.com/pdf-framework/net/pdf-library/protect-pdf) using encryption and set permission to the PDF document operations like printing, editing, copy content etc. using user password and owner password. Two types of encryption algorithms are available
|
||||
|
||||
1. Rivest Cipher 4 (RC4)
|
||||
2. Advanced Encryption Standard (AES)
|
||||
|
|
|
@ -5,9 +5,9 @@ platform: file-formats
|
|||
control: PDF
|
||||
documentation: UG
|
||||
---
|
||||
# Working with Tables
|
||||
# Working with .NET PDF Tables
|
||||
|
||||
Essential PDF provides support for two types of table models, both having a different levels of customization, which is explained below. The two types of table models are
|
||||
Essential PDF provides support for two types of [PDF table](https://www.syncfusion.com/pdf-framework/net/pdf-library/pdf-tables) models, both having a different levels of customization, which is explained below. The two types of table models are
|
||||
|
||||
1. [PdfGrid](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Grid.PdfGrid.html)
|
||||
2. [PdfLightTable](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Tables.PdfLightTable.html)
|
||||
|
|
|
@ -11,7 +11,7 @@ An interactive form, sometimes referred to as an AcroForm is a collection of fie
|
|||
|
||||
## Creating a new PDF form
|
||||
|
||||
Essential PDF allows you to create and manage the form (AcroForm) in PDF document by using [PdfForm](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Interactive.PdfForm.html) class. The [PdfFormFieldCollection](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Interactive.PdfFormFieldCollection.html) class represents the entire field collection of the form.
|
||||
Essential PDF allows you to [create and manage the form](https://www.syncfusion.com/pdf-framework/net/pdf-library/pdf-form-fields) (AcroForm) in PDF document by using [PdfForm](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Interactive.PdfForm.html) class. The [PdfFormFieldCollection](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Interactive.PdfFormFieldCollection.html) class represents the entire field collection of the form.
|
||||
|
||||
### Adding the text box field
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ documentation: UG
|
|||
|
||||
## Creating a simple PowerPoint Presentation with basic elements from scratch
|
||||
|
||||
In this page, you can learn how to create a simple PowerPoint Presentation by using Essential Presentation API.
|
||||
In this page, you can learn how to create a simple [.NET PowerPoint Presentation](https://www.syncfusion.com/powerpoint-framework/net) by using Essential Presentation API.
|
||||
|
||||
For creating and manipulating a PowerPoint Presentation, include the following assemblies in the application.
|
||||
|
||||
|
@ -844,3 +844,5 @@ N> * **ChartToImageConverter** is supported from .NET Framework 4.0 onwards
|
|||
|
||||
**PresentationToPdfConverterSettings** can be used to customize the conversion of Presentation to PDF document. **ChartToImageConverter** class can be further used to improve the quality of converted charts in the PDF/Image. For more information about this, see [Conversion](/file-formats/presentation/getting-started).
|
||||
|
||||
N> You can refer to our [.NET PowerPoint framework](https://www.syncfusion.com/powerpoint-framework/net) webpage to see the product’s groundbreaking features. You can also explore our [.NET PowerPoint framework demo](https://www.syncfusion.com/demos/fileformats/powerpoint-library) that shows how to create and modify PowerPoint files from C# with just five lines of code on different platforms.
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ documentation: UG
|
|||
---
|
||||
# Presentation to PDF conversion
|
||||
|
||||
PowerPoint allows you to convert an entire Presentation or a single slide into PDF document. Refer to the following links for assemblies/nuget packages required based on platforms to convert PowerPoint document into PDF.
|
||||
PowerPoint allows you to convert an entire Presentation or a single slide into PDF document. Refer to the following links for assemblies/nuget packages required based on platforms to [convert PowerPoint document into PDF](https://www.syncfusion.com/powerpoint-framework/net/powerpoint-to-pdf-conversion).
|
||||
|
||||
* [Assemblies Information](https://help.syncfusion.com/file-formats/presentation/assemblies-required)
|
||||
* [NuGet Information](https://help.syncfusion.com/file-formats/presentation/nuget-packages-required#converting-powerpoint-presentation-into-pdf)
|
||||
|
|
|
@ -8,7 +8,7 @@ keywords: PowerPoint animation, slide animation, shape animation, pptx animation
|
|||
---
|
||||
# Working with Animations in PowerPoint Library
|
||||
|
||||
Animations are visual effects for the objects in PowerPoint presentation and animation helps to make a PowerPoint presentation more dynamic. Animation effects can be grouped into four categories.,
|
||||
[Animations](https://www.syncfusion.com/powerpoint-framework/net/powerpoint-library/powerpoint-animation) are visual effects for the objects in PowerPoint presentation and animation helps to make a PowerPoint presentation more dynamic. Animation effects can be grouped into four categories.,
|
||||
|
||||
1. Entrance
|
||||
2. Emphasis
|
||||
|
|
|
@ -8,7 +8,7 @@ keywords: PowerPoint, slide, table, format-table, rows, columns, pptx
|
|||
---
|
||||
# Working with PowerPoint Tables
|
||||
|
||||
A table in PowerPoint presentation is used to arrange document content in rows and columns. `ITable` instance represents a table in PowerPoint presentation. A table must contain at least one row.
|
||||
A [table](https://www.syncfusion.com/powerpoint-framework/net/powerpoint-library/powerpoint-tables) in PowerPoint presentation is used to arrange document content in rows and columns. `ITable` instance represents a table in PowerPoint presentation. A table must contain at least one row.
|
||||
|
||||
N> Adding more than 75 rows/columns not supported in the PowerPoint presentation using Microsoft PowerPoint application. It shows alert when you attempt to insert a table with more than 75 rows/columns, which is one of the behaviors of Microsoft PowerPoint and Essential Presentation does the same.
|
||||
|
||||
|
|
|
@ -0,0 +1,73 @@
|
|||
---
|
||||
title : Essential Studio for File Formats Weekly Nuget Release Release Notes
|
||||
description : Essential Studio for File Formats Weekly Nuget Release Release Notes
|
||||
platform : file-formats
|
||||
documentation: ug
|
||||
---
|
||||
|
||||
# Essential Studio for File Formats Release Notes
|
||||
|
||||
{% include release-info.html date="October 19, 2021" version="v19.3.0.46" %}
|
||||
|
||||
## DocIO
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.46
|
||||
#docio){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.46
|
||||
#docio){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.46
|
||||
#docio){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.46
|
||||
#docio){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.46
|
||||
#docio){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.46
|
||||
#docio){:target="_blank"}
|
||||
|
||||
|
||||
## PDF
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.46
|
||||
#pdf){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.46
|
||||
#pdf){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.46
|
||||
#pdf){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.46
|
||||
#pdf){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.46
|
||||
#pdf){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.46
|
||||
#pdf){:target="_blank"}
|
||||
|
||||
|
||||
## Presentation
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.46
|
||||
#presentation){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.46
|
||||
#presentation){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.46
|
||||
#presentation){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.46
|
||||
#presentation){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.46
|
||||
#presentation){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.46
|
||||
#presentation){:target="_blank"}
|
||||
|
||||
|
||||
## XlsIO
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.46
|
||||
#xlsio){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.46
|
||||
#xlsio){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.46
|
||||
#xlsio){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.46
|
||||
#xlsio){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.46
|
||||
#xlsio){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.46
|
||||
#xlsio){:target="_blank"}
|
|
@ -0,0 +1,73 @@
|
|||
---
|
||||
title : Essential Studio for File Formats Weekly Nuget Release Release Notes
|
||||
description : Essential Studio for File Formats Weekly Nuget Release Release Notes
|
||||
platform : file-formats
|
||||
documentation: ug
|
||||
---
|
||||
|
||||
# Essential Studio for File Formats Release Notes
|
||||
|
||||
{% include release-info.html date="November 02, 2021" version="v19.3.0.48" %}
|
||||
|
||||
## DocIO
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.48
|
||||
#docio){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.48
|
||||
#docio){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.48
|
||||
#docio){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.48
|
||||
#docio){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.48
|
||||
#docio){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.48
|
||||
#docio){:target="_blank"}
|
||||
|
||||
|
||||
## PDF
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.48
|
||||
#pdf){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.48
|
||||
#pdf){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.48
|
||||
#pdf){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.48
|
||||
#pdf){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.48
|
||||
#pdf){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.48
|
||||
#pdf){:target="_blank"}
|
||||
|
||||
|
||||
## Presentation
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.48
|
||||
#presentation){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.48
|
||||
#presentation){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.48
|
||||
#presentation){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.48
|
||||
#presentation){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.48
|
||||
#presentation){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.48
|
||||
#presentation){:target="_blank"}
|
||||
|
||||
|
||||
## XlsIO
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.48
|
||||
#xlsio){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.48
|
||||
#xlsio){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.48
|
||||
#xlsio){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.48
|
||||
#xlsio){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.48
|
||||
#xlsio){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.48
|
||||
#xlsio){:target="_blank"}
|
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
title : Essential Studio for File Formats 2021 volume 3 SP1 Release Notes
|
||||
description : Essential Studio for File Formats 2021 volume 3 SP1 Release Notes
|
||||
platform : file-formats
|
||||
documentation: ug
|
||||
---
|
||||
|
||||
# Essential Studio for File Formats Release Notes
|
||||
|
||||
{% include release-info.html date="November 12, 2021" version="v19.3.0.53" %}
|
||||
|
||||
## DocIO
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.53#docio){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.53#docio){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.53#docio){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.53#docio){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.53#docio){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.53#docio){:target="_blank"}
|
||||
|
||||
|
||||
## PDF
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.53#pdf){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.53#pdf){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.53#pdf){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.53#pdf){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.53#pdf){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.53#pdf){:target="_blank"}
|
||||
|
||||
|
||||
## Presentation
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.53#presentation){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.53#presentation){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.53#presentation){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.53#presentation){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.53#presentation){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.53#presentation){:target="_blank"}
|
||||
|
||||
|
||||
## XlsIO
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.53#xlsio){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.53#xlsio){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.53#xlsio){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.53#xlsio){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.53#xlsio){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.53#xlsio){:target="_blank"}
|
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
title : Essential Studio for File Formats Weekly Nuget Release Release Notes
|
||||
description : Essential Studio for File Formats Weekly Nuget Release Release Notes
|
||||
platform : file-formats
|
||||
documentation: ug
|
||||
---
|
||||
|
||||
# Essential Studio for File Formats Release Notes
|
||||
|
||||
{% include release-info.html date="November 17, 2021" version="v19.3.0.54" %}
|
||||
|
||||
## DocIO
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.54#docio){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.54#docio){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.54#docio){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.54#docio){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.54#docio){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.54#docio){:target="_blank"}
|
||||
|
||||
|
||||
## PDF
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.54#pdf){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.54#pdf){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.54#pdf){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.54#pdf){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.54#pdf){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.54#pdf){:target="_blank"}
|
||||
|
||||
|
||||
## Presentation
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.54#presentation){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.54#presentation){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.54#presentation){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.54#presentation){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.54#presentation){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.54#presentation){:target="_blank"}
|
||||
|
||||
|
||||
## XlsIO
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.54#xlsio){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.54#xlsio){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.54#xlsio){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.54#xlsio){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.54#xlsio){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.54#xlsio){:target="_blank"}
|
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
title : Essential Studio for File Formats Weekly Nuget Release Release Notes
|
||||
description : Essential Studio for File Formats Weekly Nuget Release Release Notes
|
||||
platform : file-formats
|
||||
documentation: ug
|
||||
---
|
||||
|
||||
# Essential Studio for File Formats Release Notes
|
||||
|
||||
{% include release-info.html date="November 23, 2021" version="v19.3.0.55" %}
|
||||
|
||||
## DocIO
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.55#docio){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.55#docio){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.55#docio){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.55#docio){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.55#docio){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.55#docio){:target="_blank"}
|
||||
|
||||
|
||||
## PDF
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.55#pdf){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.55#pdf){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.55#pdf){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.55#pdf){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.55#pdf){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.55#pdf){:target="_blank"}
|
||||
|
||||
|
||||
## Presentation
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.55#presentation){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.55#presentation){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.55#presentation){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.55#presentation){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.55#presentation){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.55#presentation){:target="_blank"}
|
||||
|
||||
|
||||
## XlsIO
|
||||
|
||||
* [ASP.NET Release Notes](/aspnet/release-notes/v19.3.0.55#xlsio){:target="_blank"}
|
||||
* [ASP.NET MVC Release Notes](/aspnetmvc/release-notes/v19.3.0.55#xlsio){:target="_blank"}
|
||||
* [ASP.NET Core Release Notes](/aspnet-core/release-notes/v19.3.0.55#xlsio){:target="_blank"}
|
||||
* [UWP Release Notes](/uwp/release-notes/v19.3.0.55#xlsio){:target="_blank"}
|
||||
* [Windows Forms Release Notes](/windowsforms/release-notes/v19.3.0.55#xlsio){:target="_blank"}
|
||||
* [WPF Release Notes](/wpf/release-notes/v19.3.0.55#xlsio){:target="_blank"}
|
|
@ -8,7 +8,7 @@ documentation: UG
|
|||
|
||||
# Excel to PDF Conversion
|
||||
|
||||
XlsIO allows you to convert an entire workbook or a single worksheet into PDF document. Refer to the following links for assemblies/nuget packages required based on platforms to convert Excel document into PDF.
|
||||
[XlsIO](https://www.syncfusion.com/excel-framework/net/excel-to-pdf-conversion) allows you to convert an entire workbook or a single worksheet into PDF document. Refer to the following links for assemblies/nuget packages required based on platforms to convert Excel document into PDF.
|
||||
|
||||
* [Assemblies Information](https://help.syncfusion.com/file-formats/xlsio/assemblies-required#converting-excel-document-to-pdf)
|
||||
* [NuGet Information](https://help.syncfusion.com/file-formats/xlsio/nuget-packages-required#converting-excel-document-into-pdf)
|
||||
|
@ -2086,3 +2086,6 @@ The following list contains unsupported elements that presently not preserved in
|
|||
* Form controls
|
||||
* ActiveX controls
|
||||
* OLE objects
|
||||
|
||||
|
||||
N> You can also explore our [.Net Excel Framework demo](https://www.syncfusion.com/demos/fileformats/excel-library) that shows how to create and modify Excel files from C# with 5 lines of code on different platforms.
|
||||
|
|
|
@ -40,7 +40,7 @@ The frequently asked questions in Essential XlsIO are listed below.
|
|||
* [How to protect the zip files using Syncfusion.Compression.Base?](faqs/how-to-protect-the-zip-files-using-syncfusion-compression-base)
|
||||
* [How to un-protect the zip files using Syncfusion.Compression.Base?](faqs/how-to-un-protect-the-zip-files-using-syncfusion-compression-base)
|
||||
* [Does Essential XlsIO provide support for Client Profile?](faqs/does-essential-xlsio-provide-support-for-client-profile)
|
||||
* [How to resolve the File does not contain workbook stream error in Syncfusion.XlsIO.Base.dll?](faqs/how-to-resolve-the-file-does-not-contain-workbook-stream-error-in-syncfusion-xlsio-base-dll)
|
||||
* [How to resolve the File does not contain workbook stream error in Syncfusion.XlsIO.Base.dll?](faqs/how-to-resolve-the-file-does-not-contain-workbook-stream-error)
|
||||
* [How to resolve Excel cannot open the file filename.xlsx... error?](faqs/how-to-resolve-excel-cannot-open-the-file-because-the-file-format-for-the-file-extension-is-not-valid)
|
||||
* [How does Excel file with uninstalled fonts is converted to PDF/Image?](faqs/how-does-excel-file-with-uninstalled-fonts-is-converted-to-pdf-image)
|
||||
* [How to avoid exception when adding worksheets with same name?](faqs/how-to-avoid-exception-when-adding-worksheets-with-same-name)
|
||||
|
|
|
@ -7,7 +7,7 @@ documentation: UG
|
|||
---
|
||||
# Overview of Syncfusion Excel (XlsIO) library
|
||||
|
||||
**Essential** **XlsIO** is a native **.****NET** class library that can be used to create and modify **Microsoft** **Excel** files by using C#, VB.NET and managed C++ code. It is a non-UI component that provides a full-fledged object model that facilitates accessing & manipulating the spreadsheets without any dependency of Microsoft Office COM libraries & Microsoft Office.
|
||||
[**Essential XlsIO**](https://www.syncfusion.com/excel-framework/net) is a native **.****NET** class library that can be used to create and modify **Microsoft** **Excel** files by using C#, VB.NET and managed C++ code. It is a non-UI component that provides a full-fledged object model that facilitates accessing & manipulating the spreadsheets without any dependency of Microsoft Office COM libraries & Microsoft Office.
|
||||
|
||||
The library can be used in Windows Forms, WPF, UWP, ASP.NET Web Forms, ASP.NET MVC, ASP.NET Core, Xamarin and Blazor applications.
|
||||
|
||||
|
@ -44,3 +44,5 @@ The library can be used in Windows Forms, WPF, UWP, ASP.NET Web Forms, ASP.NET M
|
|||
* Microsoft Excel 2013
|
||||
* Microsoft Excel 2016
|
||||
* Microsoft Excel 2019
|
||||
|
||||
N> You can also explore our [.Net Excel Framework demo](https://www.syncfusion.com/demos/fileformats/excel-library) that shows how to create and modify Excel files from C# with 5 lines of code on different platforms.
|
||||
|
|
|
@ -11,9 +11,9 @@ Yes. XlsIO preserves the password protection for the macro in the Excel document
|
|||
|
||||
## See Also
|
||||
|
||||
* [Does XlsIO support Excel files with macros that are digitally signed?](faqs/does-xlsio-support-excel-files-with-macros-that-are-digitally-signed)
|
||||
* [How to check whether an Excel document contains macro?](faqs/how-to-check-whether-an-excel-document-contains-macro)
|
||||
* [How to open an Excel 2013 Macro Enabled Template?](faqs/how-to-open-an-excel-2013-macro-enabled-template)
|
||||
* [Does XlsIO support Excel files with macros that are digitally signed?](does-xlsio-support-excel-files-with-macros-that-are-digitally-signed)
|
||||
* [How to check whether an Excel document contains macro?](how-to-check-whether-an-excel-document-contains-macro)
|
||||
* [How to open an Excel 2013 Macro Enabled Template?](how-to-open-an-excel-2013-macro-enabled-template)
|
||||
* [How to create a macro?](https://help.syncfusion.com/file-formats/xlsio/working-with-macros#creating-a-macro)
|
||||
* [How to edit a macro?](https://help.syncfusion.com/file-formats/xlsio/working-with-macros#editing-a-macro)
|
||||
* [How to remove macros?](https://help.syncfusion.com/file-formats/xlsio/working-with-macros#removing-macros)
|
||||
|
|
|
@ -158,7 +158,7 @@ private static void SubstituteFont(object sender, SubstituteFontEventArgs args)
|
|||
* [How to use Substitute Font in Excel-to-PDF Conversion?](https://help.syncfusion.com/file-formats/xlsio/excel-to-pdf-conversion#substitute-font-in-excel-to-pdf-conversion)
|
||||
* [How to Embed Fonts?](https://help.syncfusion.com/file-formats/xlsio/excel-to-pdf-converter-settings#embed-fonts)
|
||||
* [How to Capture Warnings in Excel-to-PDF Conversion?](https://help.syncfusion.com/file-formats/xlsio/excel-to-pdf-converter-settings#capture-warnings-in-excel-to-pdf-conversion)
|
||||
* [What is the image quality when using the ExportQualityImage property?](faqs/what-is-the-image-quality-when-using-the-exportqualityimage-property)
|
||||
* [What is the image quality when using the ExportQualityImage property?](what-is-the-image-quality-when-using-the-exportqualityimage-property)
|
||||
* [How to convert a Worksheet to Image?](https://help.syncfusion.com/file-formats/xlsio/worksheet-to-image-conversion)
|
||||
* [How to convert a Chart to Image?](https://help.syncfusion.com/file-formats/xlsio/chart-to-image-conversion)
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to change data point label color of a Waterfall chart?](faqs/how-to-change-data-point-label-color-of-a-waterfall-chart)
|
||||
* [How to create a Chart with a discontinuous range?](faqs/how-to-create-a-chart-with-a-discontinuous-range)
|
||||
* [How to change data point label color of a Waterfall chart?](how-to-change-data-point-label-color-of-a-waterfall-chart)
|
||||
* [How to create a Chart with a discontinuous range?](how-to-create-a-chart-with-a-discontinuous-range)
|
||||
* [What are the chart data label formatting?](https://help.syncfusion.com/file-formats/xlsio/working-with-charts#data-labels-appearance)
|
||||
* [What are the font settings for chart legend and data labels?](https://help.syncfusion.com/file-formats/xlsio/working-with-charts#font-settings-for-chart-legend-and-data-labels)
|
||||
|
|
|
@ -147,9 +147,9 @@ using (ExcelEngine excelEngine = new ExcelEngine())
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to open an Excel 2013 Macro Enabled Template?](faqs/how-to-open-an-excel-2013-macro-enabled-template)
|
||||
* [Does XlsIO support Excel files with macros that are digitally signed?](faqs/does-xlsio-support-excel-files-with-macros-that-are-digitally-signed)
|
||||
* [Does XlsIO support password protected macro in the Excel documents?](faqs/does-xlsio-support-password-protected-macro-in-the-excel-documents)
|
||||
* [How to open an Excel 2013 Macro Enabled Template?](how-to-open-an-excel-2013-macro-enabled-template)
|
||||
* [Does XlsIO support Excel files with macros that are digitally signed?](does-xlsio-support-excel-files-with-macros-that-are-digitally-signed)
|
||||
* [Does XlsIO support password protected macro in the Excel documents?](does-xlsio-support-password-protected-macro-in-the-excel-documents)
|
||||
* [How to create a macro?](https://help.syncfusion.com/file-formats/xlsio/working-with-macros#creating-a-macro)
|
||||
* [How to edit a macro?](https://help.syncfusion.com/file-formats/xlsio/working-with-macros#editing-a-macro)
|
||||
* [How to remove macros?](https://help.syncfusion.com/file-formats/xlsio/working-with-macros#removing-macros)
|
||||
|
|
|
@ -238,8 +238,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to create a Chart with a discontinuous range?](faqs/how-to-create-a-chart-with-a-discontinuous-range)
|
||||
* [How to create and open Excel Template files by using XlsIO?](faqs/how-to-create-and-open-excel-template-files-by-using-xlsio)
|
||||
* [How to create a Chart with a discontinuous range?](how-to-create-a-chart-with-a-discontinuous-range)
|
||||
* [How to create and open Excel Template files by using XlsIO?](how-to-create-and-open-excel-template-files-by-using-xlsio)
|
||||
* [How to create sparkline?](https://help.syncfusion.com/file-formats/xlsio/working-with-charts#sparkline)
|
||||
* [How to create named range in Excel?](https://help.syncfusion.com/file-formats/xlsio/migrate-from-office-automation-to-syncfusion-xlsio/create-named-range-in-excel)
|
||||
* [How to define names?](https://help.syncfusion.com/file-formats/xlsio/working-with-formulas#defined-names)
|
||||
|
|
|
@ -233,12 +233,12 @@ using (ExcelEngine excelEngine = new ExcelEngine())
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to create a Chart with a discontinuous range?](faqs/how-to-create-a-chart-with-a-discontinuous-range)
|
||||
* [How to create a sparkline from a named range?](faqs/how-to-create-a-sparkline-from-a-named-range)
|
||||
* [How to open an Excel 2013 Macro Enabled Template?](faqs/how-to-open-an-excel-2013-macro-enabled-template)
|
||||
* [How to open an Excel file from stream?](faqs/how-to-open-an-excel-file-from-stream)
|
||||
* [How to open an existing XLSX workbook and save it as XLS?](faqs/how-to-open-an-existing-xlsx-workbook-and-save-it-as-xls)
|
||||
* [Does XlsIO support Excel files with macros that are digitally signed?](faqs/does-xlsio-support-excel-files-with-macros-that-are-digitally-signed)
|
||||
* [How to create a Chart with a discontinuous range?](how-to-create-a-chart-with-a-discontinuous-range)
|
||||
* [How to create a sparkline from a named range?](how-to-create-a-sparkline-from-a-named-range)
|
||||
* [How to open an Excel 2013 Macro Enabled Template?](how-to-open-an-excel-2013-macro-enabled-template)
|
||||
* [How to open an Excel file from stream?](how-to-open-an-excel-file-from-stream)
|
||||
* [How to open an existing XLSX workbook and save it as XLS?](how-to-open-an-existing-xlsx-workbook-and-save-it-as-xls)
|
||||
* [Does XlsIO support Excel files with macros that are digitally signed?](does-xlsio-support-excel-files-with-macros-that-are-digitally-signed)
|
||||
* [How to create a simple Excel file?](https://help.syncfusion.com/file-formats/xlsio/getting-started-create-excel-file-csharp-vbnet#create-a-simple-excel-file)
|
||||
* [How to fill template based data Template Markers](https://help.syncfusion.com/file-formats/xlsio/getting-started-create-excel-file-csharp-vbnet#template-based-data-filling-using-template-markers)
|
||||
* [How to open an existing workbook?](https://help.syncfusion.com/file-formats/xlsio/loading-and-saving-workbook#opening-an-existing-workbook)
|
||||
|
|
|
@ -162,7 +162,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to create a Chart with a discontinuous range?](faqs/how-to-create-a-chart-with-a-discontinuous-range)
|
||||
* [How to create a Chart with a discontinuous range?](how-to-create-a-chart-with-a-discontinuous-range)
|
||||
* [How to show or hide a specific range?](https://help.syncfusion.com/file-formats/xlsio/worksheet-rows-and-columns-manipulation#show-or-hide-specific-range)
|
||||
* [How to access a cell or a range?](https://help.syncfusion.com/file-formats/xlsio/worksheet-cells-manipulation#accessing-a-cell-or-a-range)
|
||||
* [How to access relative range?](https://help.syncfusion.com/file-formats/xlsio/worksheet-cells-manipulation#accessing-relative-range)
|
||||
|
|
|
@ -118,6 +118,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to ignore print areas set in a worksheet?](faqs/how-to-ignore-print-areas-set-in-a-worksheet)
|
||||
* [How to resolve Excel cannot open the file filename.xlsx... error?](faqs/how-to-resolve-excel-cannot-open-the-file-because-the-file-format-for-the-file-extension-is-not-valid)
|
||||
* [How to resolve the File does not contain workbook stream error in Syncfusion.XlsIO.Base.dll?](faqs/how-to-resolve-the-file-does-not-contain-workbook-stream-error-in-syncfusion-xlsio-base-dll)
|
||||
* [How to ignore print areas set in a worksheet?](how-to-ignore-print-areas-set-in-a-worksheet)
|
||||
* [How to resolve Excel cannot open the file filename.xlsx... error?](how-to-resolve-excel-cannot-open-the-file-because-the-file-format-for-the-file-extension-is-not-valid)
|
||||
* [How to resolve the File does not contain workbook stream error in Syncfusion.XlsIO.Base.dll?](how-to-resolve-the-file-does-not-contain-workbook-stream-error-in-syncfusion-xlsio-base-dll)
|
||||
|
|
|
@ -208,11 +208,11 @@ using (ExcelEngine excelEngine = new ExcelEngine())
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to open an existing XLSX workbook and save it as XLS?](faqs/how-to-open-an-existing-xlsx-workbook-and-save-it-as-xls)
|
||||
* [How to create and open Excel Template files by using XlsIO?](faqs/how-to-create-and-open-excel-template-files-by-using-xlsio)
|
||||
* [How to copy a range from one workbook to another?](faqs/how-to-copy-a-range-from-one-workbook-to-another)
|
||||
* [Does XlsIO support Excel files with macros that are digitally signed?](faqs/does-xlsio-support-excel-files-with-macros-that-are-digitally-signed)
|
||||
* [How does Excel file with uninstalled fonts is converted to PDF/Image?](faqs/how-does-excel-file-with-uninstalled-fonts-is-converted-to-pdf-image)
|
||||
* [How to sort two or more columns in a pivot table?](faqs/how-to-sort-two-or-more-columns-in-a-pivot-table)
|
||||
* [How to open an existing XLSX workbook and save it as XLS?](how-to-open-an-existing-xlsx-workbook-and-save-it-as-xls)
|
||||
* [How to create and open Excel Template files by using XlsIO?](how-to-create-and-open-excel-template-files-by-using-xlsio)
|
||||
* [How to copy a range from one workbook to another?](how-to-copy-a-range-from-one-workbook-to-another)
|
||||
* [Does XlsIO support Excel files with macros that are digitally signed?](does-xlsio-support-excel-files-with-macros-that-are-digitally-signed)
|
||||
* [How does Excel file with uninstalled fonts is converted to PDF/Image?](how-does-excel-file-with-uninstalled-fonts-is-converted-to-pdf-image)
|
||||
* [How to sort two or more columns in a pivot table?](how-to-sort-two-or-more-columns-in-a-pivot-table)
|
||||
* [How to move or copy a worksheet?](https://help.syncfusion.com/file-formats/xlsio/working-with-excel-worksheet#move-or-copy-a-worksheet)
|
||||
|
||||
|
|
|
@ -107,10 +107,10 @@ N> Workbook must be saved in appropriate version, failing in this leads to file
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to open an Excel file from stream?](faqs/how-to-open-an-excel-file-from-stream)
|
||||
* [How to open an Excel 2013 Macro Enabled Template?](faqs/how-to-open-an-excel-2013-macro-enabled-template)
|
||||
* [How to create and open Excel Template files by using XlsIO?](faqs/how-to-create-and-open-excel-template-files-by-using-xlsio)
|
||||
* [How to save a file to stream?](faqs/how-to-save-a-file-to-stream)
|
||||
* [How to merge excel files from more than one workbook to a single file?](faqs/how-to-merge-excel-files-from-more-than-one-workbook-to-a-single-file)
|
||||
* [How to open an Excel file from stream?](how-to-open-an-excel-file-from-stream)
|
||||
* [How to open an Excel 2013 Macro Enabled Template?](how-to-open-an-excel-2013-macro-enabled-template)
|
||||
* [How to create and open Excel Template files by using XlsIO?](how-to-create-and-open-excel-template-files-by-using-xlsio)
|
||||
* [How to save a file to stream?](how-to-save-a-file-to-stream)
|
||||
* [How to merge excel files from more than one workbook to a single file?](how-to-merge-excel-files-from-more-than-one-workbook-to-a-single-file)
|
||||
* [How to opening an existing workbook?](https://help.syncfusion.com/file-formats/xlsio/loading-and-saving-workbook#opening-an-existing-workbook)
|
||||
* [How to save an Excel workbook to file system?](https://help.syncfusion.com/file-formats/xlsio/loading-and-saving-workbook#saving-a-excel-workbook-to-file-system)
|
||||
|
|
|
@ -208,6 +208,6 @@ Xamarin.Forms.DependencyService.Get<ISave>().SaveAndView("Sample.xlsx", "applica
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to resolve the File does not contain workbook stream error in Syncfusion.XlsIO.Base.dll?](faqs/how-to-resolve-the-file-does-not-contain-workbook-stream-error-in-syncfusion-xlsio-base-dll)
|
||||
* [How to resolve the File does not contain workbook stream error in Syncfusion.XlsIO.Base.dll?](how-to-resolve-the-file-does-not-contain-workbook-stream-error-in-syncfusion-xlsio-base-dll)
|
||||
* [What are the known exceptions of XlsIO?](https://help.syncfusion.com/file-formats/xlsio/known-exceptions)
|
||||
* [What are the supported features by file formats?](https://help.syncfusion.com/file-formats/xlsio/supported-features-by-file-formats)
|
||||
|
|
|
@ -77,7 +77,7 @@ N> This method is available from 12.4 version onwards.
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to resolve Excel cannot open the file filename.xlsx... error?](faqs/how-to-resolve-excel-cannot-open-the-file-because-the-file-format-for-the-file-extension-is-not-valid)
|
||||
* [How to resolve Excel cannot open the file filename.xlsx... error?](how-to-resolve-excel-cannot-open-the-file-because-the-file-format-for-the-file-extension-is-not-valid)
|
||||
* [What are the known exceptions of XlsIO?](https://help.syncfusion.com/file-formats/xlsio/known-exceptions)
|
||||
* [How to open an Excel file from stream?](faqs/how-to-open-an-excel-file-from-stream)
|
||||
* [How to save a file to stream?](faqs/how-to-save-a-file-to-stream)
|
||||
* [How to open an Excel file from stream?](how-to-open-an-excel-file-from-stream)
|
||||
* [How to save a file to stream?](how-to-save-a-file-to-stream)
|
||||
|
|
|
@ -132,9 +132,9 @@ using (ExcelEngine excelEngine = new ExcelEngine())
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to format text within a cell?](faqs/how-to-format-text-within-a-cell)
|
||||
* [How to protect certain cells in a worksheet?](faqs/how-to-protect-certain-cells-in-a-worksheet)
|
||||
* [How to copy/paste the cell values that contain only formula?](faqs/how-to-copy-paste-the-cell-values-that-contain-only-formula)
|
||||
* [How to format text within a cell?](how-to-format-text-within-a-cell)
|
||||
* [How to protect certain cells in a worksheet?](how-to-protect-certain-cells-in-a-worksheet)
|
||||
* [How to copy/paste the cell values that contain only formula?](how-to-copy-paste-the-cell-values-that-contain-only-formula)
|
||||
* [How to change the grid line color of the Excel sheet?](how-to-change-the-grid-line-color-of-the-excel-sheet)
|
||||
* [How to show or hide gridlines?](https://help.syncfusion.com/file-formats/xlsio/working-with-excel-worksheet#show-or-hide-grid-lines)
|
||||
* [How to apply wrap text?](https://help.syncfusion.com/file-formats/xlsio/working-with-cell-or-range-formatting#apply-wrap-text)
|
||||
|
|
|
@ -147,10 +147,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
|
|||
|
||||
## See Also
|
||||
|
||||
* [What is the maximum range of Rows and Columns?](faqs/what-is-the-maximum-range-of-rows-and-columns)
|
||||
* [How to unfreeze the rows and columns in XlsIO?](faqs/how-to-unfreeze-the-rows-and-columns-in-xlsio)
|
||||
* [How to hide the summary rows and columns using XlsIO?](faqs/how-to-hide-the-summary-rows-and-columns-using-xlsio)
|
||||
* [How to merge excel files from more than one workbook to a single file?](faqs/how-to-merge-excel-files-from-more-than-one-workbook-to-a-single-file)
|
||||
* [What is the maximum range of Rows and Columns?](what-is-the-maximum-range-of-rows-and-columns)
|
||||
* [How to unfreeze the rows and columns in XlsIO?](how-to-unfreeze-the-rows-and-columns-in-xlsio)
|
||||
* [How to hide the summary rows and columns using XlsIO?](how-to-hide-the-summary-rows-and-columns-using-xlsio)
|
||||
* [How to merge excel files from more than one workbook to a single file?](how-to-merge-excel-files-from-more-than-one-workbook-to-a-single-file)
|
||||
* [What is data sorting?](https://help.syncfusion.com/file-formats/xlsio/worksheet-cells-manipulation#data-sorting)
|
||||
* [How to sort by value in Pivot Table?](https://help.syncfusion.com/file-formats/xlsio/working-with-pivot-tables#sort-by-value-in-pivot-table)
|
||||
* [How to filter Excel data?](https://help.syncfusion.com/file-formats/xlsio/migrate-from-office-automation-to-syncfusion-xlsio/filter-excel-data)
|
||||
|
|
|
@ -133,9 +133,9 @@ using (ExcelEngine excelEngine = new ExcelEngine())
|
|||
|
||||
## See Also
|
||||
|
||||
* [What is the maximum range of Rows and Columns?](faqs/what-is-the-maximum-range-of-rows-and-columns)
|
||||
* [How to hide the summary rows and columns using XlsIO?](faqs/how-to-hide-the-summary-rows-and-columns-using-xlsio)
|
||||
* [How to sort two or more columns in a pivot table?](faqs/how-to-sort-two-or-more-columns-in-a-pivot-table)
|
||||
* [What is the maximum range of Rows and Columns?](what-is-the-maximum-range-of-rows-and-columns)
|
||||
* [How to hide the summary rows and columns using XlsIO?](how-to-hide-the-summary-rows-and-columns-using-xlsio)
|
||||
* [How to sort two or more columns in a pivot table?](how-to-sort-two-or-more-columns-in-a-pivot-table)
|
||||
* [How to freeze panes?](https://help.syncfusion.com/file-formats/xlsio/working-with-excel-worksheet#freeze-panes)
|
||||
* [How to unfreeze panes?](https://help.syncfusion.com/file-formats/xlsio/working-with-excel-worksheet#unfreeze-panes)
|
||||
* [How to split panes?](https://help.syncfusion.com/file-formats/xlsio/working-with-excel-worksheet#split-panes)
|
||||
|
|
|
@ -115,8 +115,8 @@ zipArchive.Close()
|
|||
|
||||
## See Also
|
||||
|
||||
* [How to zip files using the Syncfusion.Compression.Zip namespace?](faqs/how-to-zip-files-using-the-syncfusion-compression-zip-namespace)
|
||||
* [How to protect the zip files using Syncfusion.Compression.Base?](faqs/how-to-protect-the-zip-files-using-syncfusion-compression-base)
|
||||
* [How to un-protect the zip files using Syncfusion.Compression.Base?](faqs/how-to-un-protect-the-zip-files-using-syncfusion-compression-base)
|
||||
* [How to merge excel files from more than one workbook to a single file?](faqs/how-to-merge-excel-files-from-more-than-one-workbook-to-a-single-file)
|
||||
* [How to zip files using the Syncfusion.Compression.Zip namespace?](how-to-zip-files-using-the-syncfusion-compression-zip-namespace)
|
||||
* [How to protect the zip files using Syncfusion.Compression.Base?](how-to-protect-the-zip-files-using-syncfusion-compression-base)
|
||||
* [How to un-protect the zip files using Syncfusion.Compression.Base?](how-to-un-protect-the-zip-files-using-syncfusion-compression-base)
|
||||
* [How to merge excel files from more than one workbook to a single file?](how-to-merge-excel-files-from-more-than-one-workbook-to-a-single-file)
|
||||
|
||||
|
|
|
@ -2052,4 +2052,4 @@ The resultant document looks as follows:
|
|||
|
||||
![Output document using Template data filling](Getting-Started_images/Getting-Started_img4.jpeg)
|
||||
|
||||
|
||||
N> You can refer to our [.Net Excel Framework](https://www.syncfusion.com/excel-framework/net) webpage to see the product’s groundbreaking features. You can also explore our [.Net Excel Framework demo](https://www.syncfusion.com/demos/fileformats/excel-library) that shows how to create and modify Excel files from C# with 5 lines of code on different platforms.
|