Skip to content

Commit 26eb9aa

Browse files
Merge pull request #1964 from Syncfusion-Content/hotfix/hotfix-v31.2.12
DOCINFRA-2341_merged_using_automation
2 parents 2a54b23 + 5b3af77 commit 26eb9aa

File tree

6 files changed

+177
-1
lines changed

6 files changed

+177
-1
lines changed

Document-Processing-toc.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5894,6 +5894,21 @@
58945894
<li>
58955895
<a href="/document-processing/excel/excel-library/net/faqs/how-to-extract-embedded-OLE-files-from-an-Excel-workbook-as-streams">How to extract embedded OLE files from an Excel workbook as streams?</a>
58965896
</li>
5897+
<li>
5898+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-copy-the-used-range-from-one-Excel-workbook-to-another">How to copy the used range from one Excel workbook to another?</a>
5899+
</li>
5900+
<li>
5901+
<a href="/document-processing/excel/excel-library/net/faqs/how-does-xlsio-handle-empty-string-display-text-in-hyperlinks">How does XlsIO handle empty string display text in hyperlinks?</a>
5902+
</li>
5903+
<li>
5904+
<a href="/document-processing/excel/excel-library/net/faqs/what-is-the-maximum-row-height-in-Excel">What is the maximum row height in Excel?</a>
5905+
</li>
5906+
<li>
5907+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-importing-HTML-images-into-Excel">Does XlsIO support importing HTML images into Excel?</a>
5908+
</li>
5909+
<li>
5910+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-apply-number-formatting-to-an-entire-column-in-Excel">How to apply number formatting to an entire column in Excel?</a>
5911+
</li>
58975912
</ul>
58985913
</li>
58995914
</ul>

Document-Processing/Excel/Conversions/Excel-to-PDF/NET/Excel-to-PDF-Converter-Settings.md

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2234,4 +2234,87 @@ End Namespace
22342234
{% endhighlight %}
22352235
{% endtabs %}
22362236

2237-
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).
2237+
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).
2238+
2239+
## Show File Name
2240+
2241+
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.
2242+
2243+
The following code snippet explains how to enable the <a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.ExcelToPdfConverter.ExcelToPdfConverterSettings.html#Syncfusion_ExcelToPdfConverter_ExcelToPdfConverterSettings_ShowFileNameWithExtension">ShowFileNameWithExtension</a> property during Excel to PDF conversion.
2244+
2245+
{% tabs %}
2246+
{% 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" %}
2247+
using (ExcelEngine excelEngine = new ExcelEngine())
2248+
{
2249+
IApplication application = excelEngine.Excel;
2250+
application.DefaultVersion = ExcelVersion.Xlsx;
2251+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
2252+
2253+
//Initialize XlsIORendererSettings
2254+
XlsIORendererSettings settings = new XlsIORendererSettings();
2255+
2256+
//Enable ShowFileNameWithExtension property
2257+
settings.ShowFileNameWithExtension = true;
2258+
2259+
//Initialize XlsIORenderer
2260+
XlsIORenderer renderer = new XlsIORenderer();
2261+
2262+
//Convert the Excel document to PDF with renderer settings
2263+
PdfDocument pdfDocument = renderer.ConvertToPDF(workbook, settings);
2264+
2265+
#region Save
2266+
//Save the PDF document
2267+
pdfDocument.Save(Path.GetFullPath(@"Output/Output.pdf"));
2268+
#endregion
2269+
}
2270+
{% endhighlight %}
2271+
2272+
{% highlight c# tabtitle="C# [Windows-specific]" %}
2273+
using (ExcelEngine excelEngine = new ExcelEngine())
2274+
{
2275+
IApplication application = excelEngine.Excel;
2276+
application.DefaultVersion = ExcelVersion.Xlsx;
2277+
IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx");
2278+
2279+
//Initialize ExcelToPdfConverterSettings
2280+
ExcelToPdfConverterSettings settings = new ExcelToPdfConverterSettings();
2281+
2282+
//Enable ShowFileNameWithExtension property
2283+
settings.ShowFileNameWithExtension = true;
2284+
2285+
//Load the Excel document into ExcelToPdfConverter
2286+
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
2287+
2288+
//Convert the Excel document to PDF with converter settings
2289+
PdfDocument document = converter.Convert(settings);
2290+
2291+
//Save the PDF document
2292+
document.Save("Output.pdf");
2293+
}
2294+
{% endhighlight %}
2295+
2296+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
2297+
Using excelEngine As ExcelEngine = New ExcelEngine()
2298+
Dim application As IApplication = excelEngine.Excel
2299+
application.DefaultVersion = ExcelVersion.Xlsx
2300+
Dim workbook As IWorkbook = application.Workbooks.Open("InputTemplate.xlsx")
2301+
2302+
'Initialize ExcelToPdfConverterSettings
2303+
Dim settings As ExcelToPdfConverterSettings = New ExcelToPdfConverterSettings()
2304+
2305+
'Enable ShowFileNameWithExtension property
2306+
settings.ShowFileNameWithExtension = True
2307+
2308+
'Load the Excel document into ExcelToPdfConverter
2309+
Dim converter As ExcelToPdfConverter = New ExcelToPdfConverter(workbook)
2310+
2311+
'Convert the Excel document to PDF with converter settings
2312+
Dim document As PdfDocument = converter.Convert(settings)
2313+
2314+
'Save the PDF document
2315+
document.Save("Output.pdf")
2316+
End Using
2317+
{% endhighlight %}
2318+
{% endtabs%}
2319+
2320+
A complete working example demonstrating how to enable the <a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.ExcelToPdfConverter.ExcelToPdfConverterSettings.html#Syncfusion_ExcelToPdfConverter_ExcelToPdfConverterSettings_ShowFileNameWithExtension">ShowFileNameWithExtension</a> property during Excel to PDF conversion in C# is present on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Excel%20to%20PDF/Show%20file%20name%20with%20extension%20in%20PDF/.NET/ShowFileNameWithExtension">this GitHub page</a>.

Document-Processing/Excel/Excel-Library/NET/Worksheet-Rows-and-Columns-Manipulation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,8 @@ End Using
950950

951951
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).
952952

953+
N> The <a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_RowHeight">RowHeight</a> or <a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_ColumnWidth">ColumnWidth</a> of collapsed rows or columns will be 0.
954+
953955
### Subtotal
954956

955957
The XlsIO supports subtotaling a group to quickly calculate rows of related data by inserting subtotals and totals.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: XlsIO support for importing HTML images into Excel | Syncfusion
3+
description: Learn whether Syncfusion XlsIO supports importing HTML images into Excel using the Syncfusion .NET Excel library (XlsIO).
4+
platform: document-processing
5+
control: XlsIO
6+
documentation: UG
7+
---
8+
9+
# Does XlsIO support importing HTML images into Excel?
10+
11+
No, XlsIO does not support importing HTML images into Excel. However, it does support importing HTML tables into Excel.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: Hyperlink display text behavior | Syncfusion
3+
description: This page explains how Syncfusion XlsIO handles empty string display text in hyperlinks, consistent with Microsoft Excel behavior.
4+
platform: document-processing
5+
control: XlsIO
6+
documentation: UG
7+
---
8+
9+
# How does XlsIO handle empty string display text in hyperlinks?
10+
11+
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.
12+
13+
If a user does not provide a <a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IHyperLink.html#Syncfusion_XlsIO_IHyperLink_TextToDisplay">TextToDisplay</a> value explicitly after assigning a hyperlink <a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IHyperLink.html#Syncfusion_XlsIO_IHyperLink_Address">Address</a>, XlsIO uses the address value as the display text to match Excel behavior. If <a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IHyperLink.html#Syncfusion_XlsIO_IHyperLink_TextToDisplay">TextToDisplay</a> is assigned after the <a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IHyperLink.html#Syncfusion_XlsIO_IHyperLink_Address">Address</a>, that value is used.
14+
15+
{% tabs %}
16+
{% highlight c# tabtitle="C# [Cross-platform]" %}
17+
//Case 1: Without TextToDisplay - address itself is used as display text
18+
IHyperLink hyperlink1 = sheet.HyperLinks.Add(sheet.Range["A1"]);
19+
hyperlink1.Type = ExcelHyperLinkType.Url;
20+
hyperlink1.Address = "http://www.syncfusion.com"; //Display text will be "http://www.syncfusion.com"
21+
22+
//Case 2: With TextToDisplay - provided text is used as display text
23+
IHyperLink hyperlink2 = sheet.HyperLinks.Add(sheet.Range["A2"]);
24+
hyperlink2.Type = ExcelHyperLinkType.Url;
25+
hyperlink2.Address = "http://www.syncfusion.com";
26+
hyperlink2.TextToDisplay = "syncfusion"; //Display text will be "syncfusion"
27+
{% endhighlight %}
28+
29+
{% highlight c# tabtitle="C# [Windows-specific]" %}
30+
//Case 1: Without TextToDisplay - address itself is used as display text
31+
IHyperLink hyperlink1 = sheet.HyperLinks.Add(sheet.Range["A1"]);
32+
hyperlink1.Type = ExcelHyperLinkType.Url;
33+
hyperlink1.Address = "http://www.syncfusion.com"; //Display text will be "http://www.syncfusion.com"
34+
35+
//Case 2: With TextToDisplay - provided text is used as display text
36+
IHyperLink hyperlink2 = sheet.HyperLinks.Add(sheet.Range["A2"]);
37+
hyperlink2.Type = ExcelHyperLinkType.Url;
38+
hyperlink2.Address = "http://www.syncfusion.com";
39+
hyperlink2.TextToDisplay = "syncfusion"; //Display text will be "syncfusion"
40+
{% endhighlight %}
41+
42+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
43+
'Case 1: Without TextToDisplay - address itself is used as display text
44+
Dim hyperlink1 As IHyperLink = sheet.HyperLinks.Add(sheet.Range("A1"))
45+
hyperlink1.Type = ExcelHyperLinkType.Url
46+
hyperlink1.Address = "http://www.syncfusion.com" 'Display text will be "http://www.syncfusion.com"
47+
48+
'Case 2: With TextToDisplay - provided text is used as display text
49+
Dim hyperlink2 As IHyperLink = sheet.HyperLinks.Add(sheet.Range("A2"))
50+
hyperlink2.Type = ExcelHyperLinkType.Url
51+
hyperlink2.Address = "http://www.syncfusion.com"
52+
hyperlink2.TextToDisplay = "syncfusion" 'Display text will be "syncfusion"
53+
{% endhighlight %}
54+
{% endtabs %}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Excel maximum row height and text overflow | Syncfusion
3+
description: Learn about Excel's maximum row height of 409 points and how Syncfusion XlsIO enforces this limitation.
4+
platform: document-processing
5+
control: XlsIO
6+
documentation: UG
7+
---
8+
9+
# What is the maximum row height in Excel?
10+
11+
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.

0 commit comments

Comments
 (0)