Generate output to a string (OutputString), rather than to a file (OutputFile).
public bool OutputToString;
Public Property OutputToString() As bool