Dear All,
I have a Document that contains four reports like
Report(1)
Report(2)
Report(3)
Report(4)
I can save whole document as PDF and
also Active Report Tab as PDf,
But i wanna save each report tab from BO Document as a separate PDF using VBA.
Can you Please give me the sample code for this.
Save whole Document to PDF:
Sub ExportPDF()
Dim curdoc As Document
Dim currpt As Report
Set curdoc = ActiveDocument
Set currpt = ActiveReport
curdoc.ExportAsPDF ("C:\Test"
End Sub
Save Active Tab to PDf :
Sub ExportPDF()
ThisDocument.ActiveReport.ExportAsPDF ("C:\Test"
End Sub
Can you anybody please give me the sample code to save each report tab as separate PDF using VBA.
Thanks
I have a Document that contains four reports like
Report(1)
Report(2)
Report(3)
Report(4)
I can save whole document as PDF and
also Active Report Tab as PDf,
But i wanna save each report tab from BO Document as a separate PDF using VBA.
Can you Please give me the sample code for this.
Save whole Document to PDF:
Sub ExportPDF()
Dim curdoc As Document
Dim currpt As Report
Set curdoc = ActiveDocument
Set currpt = ActiveReport
curdoc.ExportAsPDF ("C:\Test"

End Sub
Save Active Tab to PDf :
Sub ExportPDF()
ThisDocument.ActiveReport.ExportAsPDF ("C:\Test"

End Sub
Can you anybody please give me the sample code to save each report tab as separate PDF using VBA.
Thanks