This web page will explain how users can dynamically insert hyperlinks to their report, email message & various documents types inside their own .NET applications. Hyperlinks are the backbone of World Wide Web and can be used to link different pages, documents or click on to jump to a new section within the current document. GroupDocs.Assembly .NET is a very powerful API that helps software developers to add hyperlinks dynamically inside their documents or reports with just a couple of lines of code. It has included support for some of very popular documents types such as PDF, HTML, Outlook email, Microsoft Office Word, Excel worksheets, PowerPoint presentations and many more. It supported several advanced features such as Inserting links to document page, Inserting links to cells, editing hyperlinks, displaying text instead for the hyperlink, dynamically inserting links from bookmarks, inserting hyperlink to a presentation slide and many more.
GroupDocs.Assembly .NET API provides complete support for inserting and editing hyperlinks inside various types of documents. The following C# .NET code example shows how to add hyperlinks inside a Word document with ease.
// Supported file formats: https://docs.groupdocs.com/watermark/java/supported-document-formats/ | |
const String strDocumentTemplate = "Word Templates/Dynamic Hyperlink.docx"; | |
const String strDocumentReport = "Word Reports/Dynamic Hyperlink.docx"; | |
const String uriExpression = "https://www.groupdocs.com/"; | |
const String displayTextExpression = "GroupDocs"; | |
try | |
{ | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate), CommonUtilities.SetDestinationDocument(strDocumentReport), | |
new DataSourceInfo(uriExpression,"uriExpression"), new DataSourceInfo(displayTextExpression,"displayTextExpression")); | |
} | |
catch (Exception ex) | |
{ | |
Console.WriteLine(ex.Message); | |
} |
GroupDocs.Assembly .NET API fully support adding and processing of hyperlinks inside Spreadsheet files. You can easily edit it’s location or replace it with a new one. The following C# code shows how easily can users insert hyperlinks in their Spreadsheet Files inside their own .NET apps.
// Supported file formats: https://docs.groupdocs.com/watermark/java/supported-document-formats/ | |
const String strDocumentTemplate = "Spreadsheet Templates/Dynamic Hyperlink.xlsx"; | |
const String strDocumentReport = "Spreadsheet Reports/Dynamic Hyperlink.xlsx"; | |
const String uriExpression = "https://www.groupdocs.com/"; | |
const String displayTextExpression = "GroupDocs"; | |
try | |
{ | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate), CommonUtilities.SetDestinationDocument(strDocumentReport), | |
new DataSourceInfo(uriExpression,"uriExpression"), new DataSourceInfo(displayTextExpression,"displayTextExpression")); | |
} | |
catch (Exception ex) | |
{ | |
Console.WriteLine(ex.Message); | |
} |
GroupDocs.Assembly for .NET helps software professionals to build applications for managing various types of documents. The following code example demonstrates how software developers can add hyperlinks inside their PowerPoint Presentation documents.
// Supported file formats: https://docs.groupdocs.com/watermark/java/supported-document-formats/ | |
const String strDocumentTemplate = "Presentation Templates/Dynamic Hyperlink.pptx"; | |
const String strDocumentReport = "Presentation Reports/Dynamic Hyperlink.pptx"; | |
const String uriExpression = "https://www.groupdocs.com/"; | |
const String displayTextExpression = "GroupDocs"; | |
try | |
{ | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate), CommonUtilities.SetDestinationDocument(strDocumentReport), | |
new DataSourceInfo(uriExpression,"uriExpression"), new DataSourceInfo(displayTextExpression,"displayTextExpression")); | |
} | |
catch (Exception ex) | |
{ | |
Console.WriteLine(ex.Message); | |
} |
GroupDocs.Assembly .NET API allows software professionals to insert hyperlinks inside their email documents. The following .NET code demonstrates how easily can programmers add hyperlinks to their Email messages and send to other users from within their own .NET apps.
// Supported file formats: https://docs.groupdocs.com/assembly/net/supported-document-formats/ | |
const String strDocumentTemplate = "Email Templates/Dynamic Hyperlink.msg"; | |
const String strDocumentReport = "Email Reports/Dynamic Hyperlink.msg"; | |
const String uriExpression = "https://www.groupdocs.com/"; | |
const String displayTextExpression = "GroupDocs"; | |
try | |
{ | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate), CommonUtilities.SetDestinationDocument(strDocumentReport), | |
new DataSourceInfo(uriExpression,"uriExpression"), new DataSourceInfo(displayTextExpression,"displayTextExpression")); | |
} | |
catch (Exception ex) | |
{ | |
Console.WriteLine(ex.Message); | |
} |
GroupDocs.Assembly .NET APIs are supported on all major platforms and operating systems. For complete system requirements guide, please visit system requirements Before executing the code below, please make sure that you have the following prerequisites installled on your system:
A file with PPT extension represents PowerPoint file that consists of a collection of slides for displaying as SlideShow. It specifies the Binary File Format used by Microsoft PowerPoint 97-2003. A PPT file can contain several different types of information such as text, bulleted points, images, multimedia and other embedded OLE objects. Microsoft came up with newer file format for PowerPoint, known as PPTX, from 2007 onwards that is based on Office OpenXML and is different from this binary file format. Several other application programs such as OpenOffice Impress and Apple Keynote can also create PPT files.
Read More(Portable Document Format)
(Hyper Text Markup Language)
(XML Paper Specifications)
(Tagged Image File Format)
(Web Page Archive Format)
(Text Document)
(XAML File)
(Open eBook File)
(Scalar Vector Graphics)
(PostScript File)
(Printer Command Language Document)
(XML File)
(OpenDocument Standard Format)
(OpenXPS File)
(Markdown Language)
(Microsoft PowerPoint Template Files)
(OpenDocument Standard Format)
(Microsoft Word Binary Format)
(Office 2007+ Word Document)
(Microsoft Word 2007 Marco File)
(Microsoft Word Template Files)
(Microsoft Word Template File )
(Microsoft Word 2007+ Template File)
(Rich Text Format)
(OpenDocument Text File Format)
(OpenDocument Standard Format)
(Microsoft Excel Spreadsheet (Legacy))
(Excel 97 - 2003 Template)
(Open XML Workbook)
(Macro-enabled Spreadsheet)
(Excel Template)
(Excel Macro-Enabled Template)
(Excel Binary Workbook)
(Open XML presentation Format)
(Macro-enabled Presentation File)
(PowerPoint Slide Show)
(PowerPoint Slide Show)
(Macro-enabled Slide Show)
(Microsoft PowerPoint Template Presentation)
(Microsoft PowerPoint Template File)
(OpenDocument Presentation Format)
(E-Mail Message)
(Apple Mail Message)
(Outlook Message Item File)