''
'' This code is part of Document Solutions for Word demos.
'' Copyright (c) MESCIUS inc. All rights reserved.
''
Imports System.IO
Imports GrapeCity.Documents.Word
'' This sample demonstrates the DsWord Layout API that allows developers during export
'' to PDF to locate in the exported document the Data Template tags and to highlight
'' them or process in some other way. Note that this sample does not bind the template
'' to data (i.e. it does not call the GcWordDocument.DataTemplate.Process() method),
'' it only highlights the tags when the template document is exported to PDF.
'' This functionality can be used for example to review the templates prior to further processing.
''
'' See also: XingTemplateTags for an example of using this API to modify the tags in the original DOCX.
'' NOTE: the C# original's GetWordLayoutSettings()/GetPdfOutputSettings() static methods are not
'' ported here - the SamplesController only ever looks those up on the C# sample type, for both
'' the C# and VB rendering paths, so they have no VB-side equivalent to provide.
Public Class MarkTagsInPDF
Function CreateDocx() As GcWordDocument
Dim doc = New GcWordDocument()
doc.Load(Path.Combine("Resources", "WordDocs", "House_Rental_Template.docx"))
Return doc
End Function
End Class