Posted 4 August 2017, 5:27 am EST
The following code extract exports the report to a web archive / .mht file. This is almost very good functionality BUT if there are any pages that are not referenced directly by a TOC entry then they are unreachable and, worse, the user is not given any clue that a continuation page exists. What is really needed is not to have a separate file per page but to have a separate file per TOC entry.
Have I missed something or is there really no way of doing this? If it is not possible then can this please be considered as an enhancement request.
Case “mht”
Dim oHTM As New ActiveReportsHTMLExport.HTMLexport
oHTM.HTMLOutputPath = GetParentFolderName(rsFileName)
oHTM.FileNamePrefix = RemoveFileExtension(GetFileName(rsFileName))
oHTM.MHTOutput = True
If bHasTOC(oReport) Then
oHTM.MultiPageOutput = True
oHTM.CreateFramesetPage = True
oHTM.TableOfContents = ddTOCSimpleHTML
End If
oReport.Export oHTM