diff --git a/File-Formats-toc.html b/File-Formats-toc.html index 088baa45a..21e48d0bc 100644 --- a/File-Formats-toc.html +++ b/File-Formats-toc.html @@ -1669,6 +1669,7 @@
  • How to vary colors by point for line and column chart
  • How to upload a file to Azure blob and download as stream
  • How to set rounded corner for chart in Excel document
  • +
  • How to find and replace text in hyperlinks
  • diff --git a/File-Formats/DocIO/Assemblies-Required.md b/File-Formats/DocIO/Assemblies-Required.md index 0f683d876..9fa66070f 100644 --- a/File-Formats/DocIO/Assemblies-Required.md +++ b/File-Formats/DocIO/Assemblies-Required.md @@ -18,7 +18,7 @@ Platform(s)
    Assembly
    -{{'[WPF](https://help.syncfusion.com/file-formats/docio/create-word-document-in-wpf)' | markdownify}}, {{'[Windows Forms](https://help.syncfusion.com/file-formats/docio/create-word-document-in-windows-forms)' | markdownify}}, {{'[ASP.NET]https://help.syncfusion.com/file-formats/docio/create-word-document-in-asp-net)' | markdownify}}, {{'[ASP.NET MVC](https://help.syncfusion.com/file-formats/docio/create-word-document-in-asp-net-mvc)' | markdownify}}
    +{{'[WPF](https://help.syncfusion.com/file-formats/docio/create-word-document-in-wpf)' | markdownify}}, {{'[Windows Forms](https://help.syncfusion.com/file-formats/docio/create-word-document-in-windows-forms)' | markdownify}}, {{'[ASP.NET](https://help.syncfusion.com/file-formats/docio/create-word-document-in-asp-net)' | markdownify}}, {{'[ASP.NET MVC](https://help.syncfusion.com/file-formats/docio/create-word-document-in-asp-net-mvc)' | markdownify}}
    Syncfusion.DocIO.Base
    Syncfusion.Compression.Base
    Syncfusion.OfficeChart.Base
    @@ -66,7 +66,7 @@ Universal (Classic)
    Syncfusion.DocIO.Universal
    -Windows UI Library (WinUI)
    .NET Multi-platform App UI (.NET MAUI)
    +{{'[Windows UI Library (WinUI)](https://help.syncfusion.com/file-formats/docio/create-word-document-in-winui)' | markdownify}}
    {{'[.NET Multi-platform App UI (.NET MAUI)](https://help.syncfusion.com/file-formats/presentation/create-read-edit-powerpoint-files-in-maui)' | markdownify}}
    Syncfusion.DocIO.NET
    Syncfusion.Compression.NET
    Syncfusion.OfficeChart.NET
    diff --git a/File-Formats/Presentation/Assemblies-Required.md b/File-Formats/Presentation/Assemblies-Required.md index ec442c603..7d023f58e 100644 --- a/File-Formats/Presentation/Assemblies-Required.md +++ b/File-Formats/Presentation/Assemblies-Required.md @@ -90,32 +90,6 @@ Syncfusion.OfficeChart.NET
    Syncfusion.PresentationRenderer.NET
    Syncfusio -## Converting Charts - -The following assemblies are required to be referred in addition to the above mentioned assemblies for converting the chart present in the PowerPoint Presentation into PDF. - - - - - - - - - - - -
    -Platform(s) -Assembly -
    -WPF, Windows Forms, ASP. NET and ASP.NET MVC
    -
    -Syncfusion.OfficeChartToImageConverter.WPF
    -Syncfusion.SfChart.WPF
    -
    -N> 1. The “Syncfusion.OfficeChartToImageConverter.WPF” assembly is supported from .NET Framework 4.0 onwards. -N> 2. Starting with the v24.1.x, if you reference "Syncfusion.PresentationRenderer", you have to add the "Syncfusion.Pdf.Imaging" assembly reference in your projects to perform PowerPoint Presentation to PDF conversion. - ## Converting PowerPoint Presentation to Image For converting a PowerPoint Presentation to Image, the following assemblies needed to be referenced in your application @@ -170,4 +144,30 @@ Syncfusion.OfficeChartToImageConverter.UWP
    Syncfusion.SfChart.UWP
    - \ No newline at end of file + +N> Starting with the v24.1.x, if you reference "Syncfusion.PresentationRenderer", you have to add the "Syncfusion.Pdf.Imaging" assembly reference in your projects to perform PowerPoint Presentation to PDF conversion. + +## Converting Charts + +The following assemblies are required to be referred in addition to the above mentioned assemblies for converting the chart present in the PowerPoint Presentation into PDF and image. + + + + + + + + + + + +
    +Platform(s) +Assembly +
    +WPF, Windows Forms, ASP. NET and ASP.NET MVC
    +
    +Syncfusion.OfficeChartToImageConverter.WPF
    +Syncfusion.SfChart.WPF
    +
    +N> The “Syncfusion.OfficeChartToImageConverter.WPF” assembly is supported from .NET Framework 4.0 onwards. diff --git a/File-Formats/Presentation/Create-PowerPoint-in-Console-application.md b/File-Formats/Presentation/Create-PowerPoint-in-Console-application.md index b4f11091b..75179302b 100644 --- a/File-Formats/Presentation/Create-PowerPoint-in-Console-application.md +++ b/File-Formats/Presentation/Create-PowerPoint-in-Console-application.md @@ -88,7 +88,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync By executing the program, you will get the **PowerPoint** as follows. -![Output PowerPoint in .NET Core console application](PPTXtoPDF_images/Output_PowerPoint_Presentation_to-PDF.png) +![Output PowerPoint in .NET Core console application](GettingStarted_images/gettingstartedsample.png) ## Create a PowerPoint in .NET Framework @@ -173,4 +173,4 @@ You can download a complete working sample from [GitHub](https://github.com/Sync By executing the program, you will get the **PowerPoint** as follows. -![Output PowerPoint in .NET FrameWork console application](PPTXtoPDF_images/Output_PowerPoint_Presentation_to-PDF.png) \ No newline at end of file +![Output PowerPoint in .NET FrameWork console application](GettingStarted_images/gettingstartedsample.png) \ No newline at end of file diff --git a/File-Formats/Presentation/GettingStarted_images/gettingstartedsample.png b/File-Formats/Presentation/GettingStarted_images/gettingstartedsample.png new file mode 100644 index 000000000..821c2363d Binary files /dev/null and b/File-Formats/Presentation/GettingStarted_images/gettingstartedsample.png differ diff --git a/File-Formats/Release-Notes/v24.2.4.md b/File-Formats/Release-Notes/v24.2.4.md index 5597d36d1..7592b12ec 100644 --- a/File-Formats/Release-Notes/v24.2.4.md +++ b/File-Formats/Release-Notes/v24.2.4.md @@ -9,6 +9,19 @@ documentation: ug {% include release-info.html date="February 06, 2024" version="v24.2.4" %} + + +
    +With the 2024 Volume 1 release, we will discontinue support for .NET Framework 4.5, 4.5.1, and 4.6 in WinForms, WPF, and the File-Format Frameworks. Instead, we will provide support for .NET 4.6.2. +
    ## DocIO diff --git a/File-Formats/XlsIO/FAQ.md b/File-Formats/XlsIO/FAQ.md index a559d3864..1ae4bb5a4 100644 --- a/File-Formats/XlsIO/FAQ.md +++ b/File-Formats/XlsIO/FAQ.md @@ -78,4 +78,5 @@ The frequently asked questions in Essential XlsIO are listed below. * [How to change the shape text font?](faqs/how-to-change-the-shape-text-font) * [Why cone chart shows itself as column or bar chart?](faqs/why-cone-chart-shows-itself-as-colum-or-bar-chart) * [How to vary colors by point for line and column chart?](faqs/how-to-vary-colors-by-point-for-line-and-column-chart) -* [How to upload a file to Azure blob and download as stream?](faqs/how-to-upload-a-file-to-azure-blob-and-download-as-stream) \ No newline at end of file +* [How to upload a file to Azure blob and download as stream?](faqs/how-to-upload-a-file-to-azure-blob-and-download-as-stream) +* [How to find and replace text in hyperlinks](faqs/how-to-find-and-replace-text-in-hyperlinks) \ No newline at end of file diff --git a/File-Formats/XlsIO/faqs/how-to-find-and-replace-text-in-hyperlinks.md b/File-Formats/XlsIO/faqs/how-to-find-and-replace-text-in-hyperlinks.md new file mode 100644 index 000000000..bf0f9aa77 --- /dev/null +++ b/File-Formats/XlsIO/faqs/how-to-find-and-replace-text-in-hyperlinks.md @@ -0,0 +1,93 @@ +--- +title: Find and Replace text in Hyperlinks | Syncfusion +description: This page shows how to find and replace text in hyperlinks using the Syncfusion .NET Excel library (XlsIO). +platform: file-formats +control: XlsIO +documentation: UG +--- + +# How to find and replace text in hyperlinks? + +The following code illustrates how to find and replace text in hyperlinks. + +{% tabs %} +{% highlight c# tabtitle="C# [Cross-platform]" %} +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + + //Loads an existing file. + FileStream inputstream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + IWorkbook workbook = application.Workbooks.Open(inputstream); + IWorksheet sheet = workbook.Worksheets[0]; + + //Find and Replace text in hyperlinks + for (int i = 0; i < sheet.HyperLinks.Count; i++) + { + IHyperLink hyperLink = sheet.HyperLinks[i]; + string address = hyperLink.Address; + string displayText = hyperLink.TextToDisplay; + hyperLink.Address = address.Replace("http://", "https://"); + if (!string.IsNullOrEmpty(displayText)) + hyperLink.TextToDisplay = displayText.Replace("http://", "https://"); + } + + // Saving the workbook + FileStream outputstream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite); + workbook.SaveAs(outputstream); + outputstream.Dispose(); +} +{% endhighlight %} + +{% highlight c# tabtitle="C# [Windows-specific]" %} +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + + //Loads an existing file. + IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx"); + IWorksheet sheet = workbook.Worksheets[0]; + + //Find and Replace text in hyperlinks + for (int i = 0; i < sheet.HyperLinks.Count; i++) + { + IHyperLink hyperLink = sheet.HyperLinks[i]; + string address = hyperLink.Address; + string displayText = hyperLink.TextToDisplay; + hyperLink.Address = address.Replace("http://", "https://"); + if (!string.IsNullOrEmpty(displayText)) + hyperLink.TextToDisplay = displayText.Replace("http://", "https://"); + } + + // Saving the workbook + workbook.SaveAs("Output1.xlsx"); +} +{% 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 + + 'Loads an existing file. + Dim workbook As IWorkbook = application.Workbooks.Open("InputTemplate.xlsx") + Dim sheet As IWorksheet = workbook.Worksheets(0) + + 'Find and Replace text in hyperlinks + For i As Integer = 0 To sheet.HyperLinks.Count - 1 + Dim hyperLink As IHyperLink = sheet.HyperLinks(i) + Dim address As String = hyperLink.Address + Dim displayText As String = hyperLink.TextToDisplay + hyperLink.Address = address.Replace("http://", "https://") + If Not String.IsNullOrEmpty(displayText) Then + hyperLink.TextToDisplay = displayText.Replace("http://", "https://") + End If + Next + + 'Saving the workbook + workbook.SaveAs("Output.xlsx") +End Using +{% endhighlight %} +{% endtabs %} \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 14f909464..304fe2f4a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -69,7 +69,7 @@ if(currentBuild.result != 'FAILURE') stage 'Delete Workspace' - def files = findFiles(glob: '**/cireports/spellcheck/*.*') + def files = findFiles(glob: '**/cireports/*.*') if(files.size() > 0) {