Page 1 of 1
Runtime Parameters Not Working
Posted: Sun Jan 12, 2003 9:50 pm
by delphi
When calling rrwrun.exe or rrw.exe from within either a Delphi application or from a command prompt, I am unable to get RRW to accept (recognize?) any parameters other than the RRW file itself.____I^m using the Win API ExecuteFile() function. What I want to do is pass the parameters for the data directory (which is workstation relative) for the report to use -- overriding the design-time construct.____If, for instance, I pass ^MyReport.rrw^ to rrwrun it works fine. However, if I pass ^MyReport.rrw /DD:MyData^ expecting R&R to read the appropriate datafiles from D drive MyData directory, I get an "invalid or duplicate command line argument". None of the switches work -- passing /B to supress the splash screen for rrw.exe returns the same error above.____I get the same behavior trying to run from a command prompt.____R&R version 9.0____Al______
=> RE: Runtime Parameters Not Working
Posted: Mon Jan 13, 2003 8:24 am
by kfleming
When you use the runtime executable, R&R expects you to provide the name of a control file or table rather than an explicit report.__The /D switch will set the default data directory but note that this directory is only used when the files used in the report cannot be found in the saved directory. If they do exist in the saved directory, the the /D directory is ignored. What you would need to do in that case is use the RI_MASTER and RI_ALIAS fields to override the saved directory.____So if you want to run the ABC.RRW report using the master file in the XYZ subdirectory you would create a control file containing:____RI_REPORT=C:ABCABC.RRW__RI_MASTER=C:XYZ____and on your command line you would use:__RRWRUN.EXE /TCONTROL.TXT____where CONTROL.TXT is the text file in the R&R directory containing the lines above.____Kathleen__R&R Support
==> RE: Runtime Parameters Not Working
Posted: Mon Jan 13, 2003 5:39 pm
by delphi
OK. Got the picture.____Now, what, if anything, can be used in the control file to set the images directory override, the equivalent to the /I parameter?____Also, is there a method to set the zoom factor when a report displays? I^m using RI_WHEIGHT, RI_WWIDTH, etc. to set the size and screen position of the report display, but the report always comes up slightly larger than the window containing it. Clicking on the zoom control a couple of times sets it right, but the initial display should do that without user intervention.____Thanks