I created a simple script from within business objects 4.1.2
rem from recording
sub main
Application.ExchangeMode = RepositoryMode Application.Documents.Receive
Application.Documents.Open(“RBOGL031”)
Application.Documents.Item(“RBOGL031”).DataProviders.Item("#DP#1").Edit
Application.Documents.Item(“RBOGL031”).Save Application.Documents.Item(“RBOGL031”).Close end sub
When I run this from within the report editor I have no problem it runs fine. When I exit business objects and try to run it from my desktop, it opens Business objects, allows me to login and says it cannot find the file. Any suggestions?
I tried the following and it still doesn’t work. I run it from reportscript editor and it’s fine. When I exit business objects and try to run the script from explorer it gets into bus obj. and says it can’t find the file. I even tried placing the script file in the userdocs directory and running from there. Any other suggestions?
Julie
sub main
rem
rem Procedure PO001E01
rem
Application.Documents.Open(“C:\Program
Files\BusinessObjects\UserDocs\RBOPO001”)
rem OpenData RBOPO001.ASC
Application.Documents.Item(“RBOPO001”).Activate Application.Documents.Item(“RBOPO001”).Refresh rem SetReportVersion 1
rem SetReportTypeMatrix
rem SetReportTypeTabular
Application.Documents.Item(“RBOPO001”).Print Application.Documents.Item(“RBOPO001”).Close Application.Documents.Item(“RBOPO001.ASC”).Close rem
Application.Exit
end sub
where
-user A user login is required.
-pass A user password is required.
-nologo Inhibits logo display on startup.
-blind Operates with no displays.
-once Startup is one-time only.
-vars Sets one or more user variable values. textfile_name is the name of a text file in the format:
variable1 = value
variable2 = value
. . .
-script Starts a script.
script_name is the name of the .spt file without the extension
So in MS DOS command line:
Change drectory to BusinessObjects directory and type the following
If in business objects (TOOLS\OPTION) the location of files and scripts are set properly you need not worry about the path for these.
I hope this does the trick.
Manoj
______________________________ Reply Separator _________________________________
Author: Julie Moran Julie.Moran@FOREMOSTFARMS.COM at Internet
Date: 08/20/1998 1:24 PM
I tried the following and it still doesn’t work. I run it from reportscript editor and it’s fine. When I exit business objects and try to run the script from explorer it gets into bus obj. and says it can’t find the file. I even tried placing the script file in the userdocs directory and running from there. Any other suggestions?