// Open preview files, first file/coversheet with write access
PreviewFile cover = new PreviewFile(@"<Path>\frontpage.ll", false);
PreviewFile report = new PreviewFile(@"<Path>\report.ll", true);
// Append report to first file/coversheet
cover.Append(report);
// Print complete report
cover.Print();
// Convert report to PDF
cover.ConvertTo(@"<Path>\report.pdf");
// Release preview files
report.Dispose();
cover.Dispose();
' Open preview files, first file/coversheet with write access
Dim cover As New PreviewFile("<Path>\frontpage.ll", False)
Dim report As New PreviewFile("<Path>\report.ll", True)
' Append report to first file/coversheet
cover.Append(report)
' Print complete report
cover.Print()
' Convert report to PDF
cover.ConvertTo("<Path>\report.pdf")
' Release preview files
report.Dispose()
cover.Dispose()