I have a script which executes several reports and sends them to a printer.
A section of the script is supposed to open a BO document and convert that
document to a CSV file but it is no longer working (it worked fine in BO 4.0.5.6a but is not working with V4.1).
I have the following script but the query has 5 report tabs and I only want it to print the 3rd tab when it prints instead of all 5 tabs. Can you tell me the command? I can’t seem to find the answer in the books or in help and it should be fairly simple.
sub main
rem
rem Procedure PM002E03
rem
Application.Documents.Open(“RBOPM002”)
Application.Documents.Item(“RBOPM002”).Activate Application.Documents.Item(“RBOPM002”).Refresh Application.Documents.Item(“RBOPM002”).Print Application.Documents.Item(“RBOPM002”).Close rem
Application.Exit
end sub
Assume you have 5 Tabs, named “Report 1”, “Report 2”, “Report 3”, “Report 4”, “Report 5”.
Now use foll script to print “Report 3”
sub main
rem
rem Procedure PM002E03
rem
Application.Documents.Open(“RBOPM002”)
Application.Documents.Item(“RBOPM002”).Activate Application.Documents.Item(“RBOPM002”).Refresh Application.Documents.Item(“RBOPM002”).Reports(“Report 3”).Print Application.Documents.Item(“RBOPM002”).Close rem
Application.Exit
end sub
Hope it helps
Vasan
I have the following script but the query has 5 report tabs and I only want it to print the 3rd tab when it prints instead of all 5 tabs. Can you tell me the command? I can’t seem to find the answer in the books or in help and it should be fairly simple.
sub main
rem
rem Procedure PM002E03
rem
Application.Documents.Open(“RBOPM002”)
Application.Documents.Item(“RBOPM002”).Activate Application.Documents.Item(“RBOPM002”).Refresh Application.Documents.Item(“RBOPM002”).Print Application.Documents.Item(“RBOPM002”).Close rem
Application.Exit
end sub