CPonty / templ-dot-net

A C# report generation engine combining strongly-typed models and annotated .docx templates.
GNU General Public License v2.0
15 stars 6 forks source link

Add hyperlink module #21

Closed CPonty closed 9 years ago

CPonty commented 9 years ago

This would operate like the PictureReplaceModule / PicturePlaceholderModule pair.

TemplHyperlink class: container for {URL, text}. Same idea as TemplGraphic.

Hyperlink placeholder: {url:path.to.hyperlinkObject}

Hyperlink replace: existing hyperlinks are matched if they have a hyperlink placeholder as the URL

CPonty commented 9 years ago

Completed with testing & code commenting.

Hyperlink Placeholder not implemented due to limitations of DocX API. Updating existing hyperlinks in the template is implemented.