이 웹 페이지에서는 사용자가 자신의 .NET 응용 프로그램 내에서 보고서, 전자 메일 메시지 및 다양한 문서 유형에 대한 하이퍼링크를 동적으로 삽입하는 방법을 설명합니다. 하이퍼링크는 World Wide Web의 중추이며 다른 페이지, 문서를 연결하는 데 사용하거나 을 클릭하여 현재 문서 내의 새 섹션으로 이동할 수 있습니다. GroupDocs.Assembly .NET은 소프트웨어 개발자가 단 몇 줄의 코드로 문서 또는 보고서 내부에 하이퍼링크를 동적으로 추가할 수 있도록 하는 매우 강력한 API입니다. PDF, HTML, Outlook 이메일, Microsoft Office Word, Excel 워크시트, PowerPoint 프레젠테이션 등과 같은 매우 인기 있는 문서 유형에 대한 지원이 포함되어 있습니다. 문서 페이지에 링크 삽입, 셀에 링크 삽입, 하이퍼링크 편집, 하이퍼링크 대신 텍스트 표시, 책갈피에서 동적으로 링크 삽입, 프레젠테이션 슬라이드에 하이퍼링크 삽입 등과 같은 여러 고급 기능을 지원했습니다.
GroupDocs.Assembly .NET API는 다양한 유형의 문서 내 하이퍼링크 삽입 및 편집을 완벽하게 지원합니다. 다음 C# .NET 코드 예제에서는 Word 문서 내에 하이퍼링크를 쉽게 추가하는 방법을 보여줍니다.
// 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는 스프레드시트 파일 내의 하이퍼링크 추가 및 처리를 완벽하게 지원합니다. 위치를 쉽게 편집하거나 새 위치로 바꿀 수 있습니다. 다음 C# 코드는 사용자가 자신의 .NET 앱 내 스프레드시트 파일에 하이퍼링크를 얼마나 쉽게 삽입할 수 있는지 보여줍니다.
// 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); | |
} |
.NET용 GroupDocs.Assembly는 소프트웨어 전문가가 다양한 유형의 문서를 관리하기 위한 응용 프로그램을 구축하는 데 도움이 됩니다. 다음 코드 예제는 소프트웨어 개발자가 PowerPoint 프레젠테이션 문서 내에 하이퍼링크를 추가할 수 있는 방법을 보여줍니다.
// 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를 사용하면 소프트웨어 전문가가 이메일 문서에 하이퍼링크를 삽입할 수 있습니다. 다음 .NET 코드는 프로그래머가 얼마나 쉽게 이메일 메시지에 하이퍼링크를 추가하고 자신의 .NET 앱 내에서 다른 사용자에게 보낼 수 있는지 보여줍니다.
// 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 API는 모든 주요 플랫폼 및 운영 체제에서 지원됩니다. 전체 시스템 요구 사항 가이드를 보려면 시스템 요구 사항을 방문하십시오. 아래 코드를 실행하기 전에 다음 전제 조건이 컴퓨터에 설치되어 있는지 확인하십시오. 체계:
(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)