Public ReadOnly Property Config As Configuration
Dim instance As WordReportsGenerator Dim value As Configuration value = instance.Config
public Configuration Config {get;}
public: property Configuration^ Config { Configuration^ get(); }
Public ReadOnly Property Config As Configuration
Dim instance As WordReportsGenerator Dim value As Configuration value = instance.Config
public Configuration Config {get;}
public: property Configuration^ Config { Configuration^ get(); }
//To run this example code, create a word document called ExampleTemplate.docx with the text [ReplaceMe] in the document WordReportsGenerator generator = new WordReportsGenerator(); //Trial Mode //WordReportsGenerator generator = new WordReportsGenerator("place user name here", "place license key here"); //License Mode const string sourceDocumentPath = @"Test Documents\ExampleTemplate.docx"; const string outputDocumentPath = "ExampleOutput.docx"; Dictionary<string, ReplacementItem> replacement = new Dictionary<string, ReplacementItem> { { "[ReplaceMe]", new ReplacementItem { Value = null } } }; generator.Config.NullText = "Custom Null Text"; generator.GenerateWordReport(sourceDocumentPath, outputDocumentPath, replacement);
'To run this example code, create a word document called ExampleTemplate.docx with the text [ReplaceMe] in the document Dim generator As New WordReportsGenerator() 'Trial Mode 'WordReportsGenerator generator = new WordReportsGenerator("place user name here", "place license key here"); //License Mode Const sourceDocumentPath As String = "Test Documents\ExampleTemplate.docx" Const outputDocumentPath As String = "ExampleOutput.docx" Dim replacement As New Dictionary(Of String, ReplacementItem)() From {{ "[ReplaceMe]", New ReplacementItem With {.Value = Nothing} }} generator.Config.NullText = "Custom Null Text" generator.GenerateWordReport(sourceDocumentPath, outputDocumentPath, replacement)
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2