Hi all,
Any idea how I can export the data captured in each tab of a BO report to it's own file?
The code I have below does the first tab.
Dim Doc as Document
Dim Rep as Report
Set Doc = Application.Documents.Item()
Doc.Refresh
Doc.Save
Set Rep = Doc.Report.Item(1)
Rep.ExportAsText("<path>\ReportName"
If I add
Set Doc = Application.Documents.Open("ReportName2"
Doc.Refresh
Doc.Save
Set Rep = Doc.Report.Item(1)
Rep.ExportAsText("<path>\ReportName2"
then I can make this report open another report and export the results as text.
Any thoughts as to how I can have another 'tab' become the focus and export the results?
Any idea how I can export the data captured in each tab of a BO report to it's own file?
The code I have below does the first tab.
Dim Doc as Document
Dim Rep as Report
Set Doc = Application.Documents.Item()
Doc.Refresh
Doc.Save
Set Rep = Doc.Report.Item(1)
Rep.ExportAsText("<path>\ReportName"

If I add
Set Doc = Application.Documents.Open("ReportName2"

Doc.Refresh
Doc.Save
Set Rep = Doc.Report.Item(1)
Rep.ExportAsText("<path>\ReportName2"

then I can make this report open another report and export the results as text.
Any thoughts as to how I can have another 'tab' become the focus and export the results?