Generates a Markdown Report from the result set.
public void GenerateMarkdownReport(
Stream stream,
MarkdownReportOptions options
)
Public Sub GenerateMarkdownReport(
ByVal stream As Stream,
ByVal options As MarkdownReportOptions
)
public:
void GenerateMarkdownReport(
Stream^ stream,
MarkdownReportOptions^ options
)
stream
The stream used to save the report.
options
The MarkdownReportOptions to use when building the report.
The report will be saved to the provided stream.
using Leadtools.Document;
using Leadtools.Document.Compare;
using Leadtools;
public void GenerateMarkdownReportExample()
{
var doc1 = DocumentFactory.LoadFromFile(pathToDocument1, new LoadDocumentOptions());
var doc2 = DocumentFactory.LoadFromFile(pathToDocument2, new LoadDocumentOptions());
var docList = new List<LEADDocument>()
{
doc1,
doc2
};
var comparer = new DocumentComparer();
var diffs = comparer.CompareDocument(docList);
using (MemoryStream ms = new MemoryStream())
{
var options = new MarkdownReportOptions()
{
BaseCSSClass = "example-base",
BaseColor = "white",
DeletionCSSClass = "example-delete",
DeletionColor = "crimson",
InsertionCSSClass = "example-insert",
InsertionColor = "lightgreen",
StrikethroughCSSClass = "example-strikethrough",
StrikethroughColor = "red",
UnderlineCSSClass = "example-underline",
UnderlineColor = "green",
};
options.ReportFooters.Add("Example Report Footer");
options.ReportHeaders.Add("Example Report Header");
options.DocumentNames.Add(doc1.Name);
options.DocumentNames.Add(doc2.Name);
diffs.GenerateMarkdownReport(ms, options);
ms.Position = 0;
File.WriteAllBytes(@"path/to/report.md", ms.ToArray());
}
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document