diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index ae4a5ce65..8125cf72e 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -5894,6 +5894,21 @@
  • How to extract embedded OLE files from an Excel workbook as streams?
  • +
  • + How to copy the used range from one Excel workbook to another? +
  • +
  • + How does XlsIO handle empty string display text in hyperlinks? +
  • +
  • + What is the maximum row height in Excel? +
  • +
  • + Does XlsIO support importing HTML images into Excel? +
  • +
  • + How to apply number formatting to an entire column in Excel? +
  • diff --git a/Document-Processing/Excel/Conversions/Excel-to-PDF/NET/Excel-to-PDF-Converter-Settings.md b/Document-Processing/Excel/Conversions/Excel-to-PDF/NET/Excel-to-PDF-Converter-Settings.md index c7a914728..b774ff82f 100644 --- a/Document-Processing/Excel/Conversions/Excel-to-PDF/NET/Excel-to-PDF-Converter-Settings.md +++ b/Document-Processing/Excel/Conversions/Excel-to-PDF/NET/Excel-to-PDF-Converter-Settings.md @@ -2234,4 +2234,87 @@ End Namespace {% endhighlight %} {% endtabs %} -A complete working example to skip warning in Excel to PDF in C# is present on [this GitHub page](https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Excel%20to%20PDF/Warnings/.NET/Warnings). \ No newline at end of file +A complete working example to skip warning in Excel to PDF in C# is present on [this GitHub page](https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Excel%20to%20PDF/Warnings/.NET/Warnings). + +## Show File Name + +This property allows you to display the file name along with its extension in the header and/or footer when converting an Excel document to PDF. It's default value is FALSE. + +The following code snippet explains how to enable the ShowFileNameWithExtension property during Excel to PDF conversion. + +{% tabs %} +{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/XlsIO-Examples/master/Excel%20to%20PDF/Show%20file%20name%20with%20extension%20in%20PDF/.NET/ShowFileNameWithExtension/ShowFileNameWithExtension/Program.cs,180" %} +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx")); + + //Initialize XlsIORendererSettings + XlsIORendererSettings settings = new XlsIORendererSettings(); + + //Enable ShowFileNameWithExtension property + settings.ShowFileNameWithExtension = true; + + //Initialize XlsIORenderer + XlsIORenderer renderer = new XlsIORenderer(); + + //Convert the Excel document to PDF with renderer settings + PdfDocument pdfDocument = renderer.ConvertToPDF(workbook, settings); + + #region Save + //Save the PDF document + pdfDocument.Save(Path.GetFullPath(@"Output/Output.pdf")); + #endregion +} +{% endhighlight %} + +{% highlight c# tabtitle="C# [Windows-specific]" %} +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx"); + + //Initialize ExcelToPdfConverterSettings + ExcelToPdfConverterSettings settings = new ExcelToPdfConverterSettings(); + + //Enable ShowFileNameWithExtension property + settings.ShowFileNameWithExtension = true; + + //Load the Excel document into ExcelToPdfConverter + ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook); + + //Convert the Excel document to PDF with converter settings + PdfDocument document = converter.Convert(settings); + + //Save the PDF document + document.Save("Output.pdf"); +} +{% endhighlight %} + +{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +Using excelEngine As ExcelEngine = New ExcelEngine() + Dim application As IApplication = excelEngine.Excel + application.DefaultVersion = ExcelVersion.Xlsx + Dim workbook As IWorkbook = application.Workbooks.Open("InputTemplate.xlsx") + + 'Initialize ExcelToPdfConverterSettings + Dim settings As ExcelToPdfConverterSettings = New ExcelToPdfConverterSettings() + + 'Enable ShowFileNameWithExtension property + settings.ShowFileNameWithExtension = True + + 'Load the Excel document into ExcelToPdfConverter + Dim converter As ExcelToPdfConverter = New ExcelToPdfConverter(workbook) + + 'Convert the Excel document to PDF with converter settings + Dim document As PdfDocument = converter.Convert(settings) + + 'Save the PDF document + document.Save("Output.pdf") +End Using +{% endhighlight %} +{% endtabs%} + +A complete working example demonstrating how to enable the ShowFileNameWithExtension property during Excel to PDF conversion in C# is present on this GitHub page. diff --git a/Document-Processing/Excel/Excel-Library/NET/Worksheet-Rows-and-Columns-Manipulation.md b/Document-Processing/Excel/Excel-Library/NET/Worksheet-Rows-and-Columns-Manipulation.md index 38c4de310..e4b030d26 100644 --- a/Document-Processing/Excel/Excel-Library/NET/Worksheet-Rows-and-Columns-Manipulation.md +++ b/Document-Processing/Excel/Excel-Library/NET/Worksheet-Rows-and-Columns-Manipulation.md @@ -950,6 +950,8 @@ End Using A complete working example to expand or collapse groups in an Excel worksheet in C# is present on [this GitHub page](https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Format%20rows%20and%20columns/Expand%20or%20Collapse%20Groups/.NET/Expand%20or%20Collapse%20Groups). +N> The RowHeight or ColumnWidth of collapsed rows or columns will be 0. + ### Subtotal The XlsIO supports subtotaling a group to quickly calculate rows of related data by inserting subtotals and totals. diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-importing-HTML-images-into-Excel.md b/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-importing-HTML-images-into-Excel.md new file mode 100644 index 000000000..fc56ea8c9 --- /dev/null +++ b/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-importing-HTML-images-into-Excel.md @@ -0,0 +1,11 @@ +--- +title: XlsIO support for importing HTML images into Excel | Syncfusion +description: Learn whether Syncfusion XlsIO supports importing HTML images into Excel using the Syncfusion .NET Excel library (XlsIO). +platform: document-processing +control: XlsIO +documentation: UG +--- + +# Does XlsIO support importing HTML images into Excel? + +No, XlsIO does not support importing HTML images into Excel. However, it does support importing HTML tables into Excel. \ No newline at end of file diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/how-does-xlsio-handle-empty-string-display-text-in-hyperlinks.md b/Document-Processing/Excel/Excel-Library/NET/faqs/how-does-xlsio-handle-empty-string-display-text-in-hyperlinks.md new file mode 100644 index 000000000..a18c2a1ca --- /dev/null +++ b/Document-Processing/Excel/Excel-Library/NET/faqs/how-does-xlsio-handle-empty-string-display-text-in-hyperlinks.md @@ -0,0 +1,54 @@ +--- +title: Hyperlink display text behavior | Syncfusion +description: This page explains how Syncfusion XlsIO handles empty string display text in hyperlinks, consistent with Microsoft Excel behavior. +platform: document-processing +control: XlsIO +documentation: UG +--- + +# How does XlsIO handle empty string display text in hyperlinks? + +As per Microsoft Excel behavior, hyperlinks cannot be assigned with empty display text values. When the display text of a hyperlink is set to an empty string, Excel automatically uses the hyperlink address itself as the display text. Syncfusion XlsIO follows the same behavior. + +If a user does not provide a TextToDisplay value explicitly after assigning a hyperlink Address, XlsIO uses the address value as the display text to match Excel behavior. If TextToDisplay is assigned after the Address, that value is used. + +{% tabs %} +{% highlight c# tabtitle="C# [Cross-platform]" %} +//Case 1: Without TextToDisplay - address itself is used as display text +IHyperLink hyperlink1 = sheet.HyperLinks.Add(sheet.Range["A1"]); +hyperlink1.Type = ExcelHyperLinkType.Url; +hyperlink1.Address = "http://www.syncfusion.com"; //Display text will be "http://www.syncfusion.com" + +//Case 2: With TextToDisplay - provided text is used as display text +IHyperLink hyperlink2 = sheet.HyperLinks.Add(sheet.Range["A2"]); +hyperlink2.Type = ExcelHyperLinkType.Url; +hyperlink2.Address = "http://www.syncfusion.com"; +hyperlink2.TextToDisplay = "syncfusion"; //Display text will be "syncfusion" +{% endhighlight %} + +{% highlight c# tabtitle="C# [Windows-specific]" %} +//Case 1: Without TextToDisplay - address itself is used as display text +IHyperLink hyperlink1 = sheet.HyperLinks.Add(sheet.Range["A1"]); +hyperlink1.Type = ExcelHyperLinkType.Url; +hyperlink1.Address = "http://www.syncfusion.com"; //Display text will be "http://www.syncfusion.com" + +//Case 2: With TextToDisplay - provided text is used as display text +IHyperLink hyperlink2 = sheet.HyperLinks.Add(sheet.Range["A2"]); +hyperlink2.Type = ExcelHyperLinkType.Url; +hyperlink2.Address = "http://www.syncfusion.com"; +hyperlink2.TextToDisplay = "syncfusion"; //Display text will be "syncfusion" +{% endhighlight %} + +{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +'Case 1: Without TextToDisplay - address itself is used as display text +Dim hyperlink1 As IHyperLink = sheet.HyperLinks.Add(sheet.Range("A1")) +hyperlink1.Type = ExcelHyperLinkType.Url +hyperlink1.Address = "http://www.syncfusion.com" 'Display text will be "http://www.syncfusion.com" + +'Case 2: With TextToDisplay - provided text is used as display text +Dim hyperlink2 As IHyperLink = sheet.HyperLinks.Add(sheet.Range("A2")) +hyperlink2.Type = ExcelHyperLinkType.Url +hyperlink2.Address = "http://www.syncfusion.com" +hyperlink2.TextToDisplay = "syncfusion" 'Display text will be "syncfusion" +{% endhighlight %} +{% endtabs %} \ No newline at end of file diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/what-is-the-maximum-row-height-in-Excel.md b/Document-Processing/Excel/Excel-Library/NET/faqs/what-is-the-maximum-row-height-in-Excel.md new file mode 100644 index 000000000..18a5986fe --- /dev/null +++ b/Document-Processing/Excel/Excel-Library/NET/faqs/what-is-the-maximum-row-height-in-Excel.md @@ -0,0 +1,11 @@ +--- +title: Excel maximum row height and text overflow | Syncfusion +description: Learn about Excel's maximum row height of 409 points and how Syncfusion XlsIO enforces this limitation. +platform: document-processing +control: XlsIO +documentation: UG +--- + +# What is the maximum row height in Excel? + +In Microsoft Excel, the maximum row height is **409 points**. When content in a cell exceeds this height, Excel does not automatically move the text to the next row. Syncfusion XlsIO follows the same behavior to remain consistent with Excel. \ No newline at end of file