Page 1 of 1

Using the .dll (getting an error)

Posted: Tue Oct 03, 2006 6:41 pm
by FRED_EMMERICH_(Guest)
I have the .dll all fixed up and it runs fine on my machine. However, on another machine it blows up on calling execRuntime(). ChooseReport(), SetPrinter() all work fine, but I get a return code of X (undocumented) from execRuntime(). The error message just says something like "cannot execute viewer: error code 2".____Any idea what this might be? I have copied the .exe, the .rsw file, the database and all .dll files to a network directory where I am running my .exe which calls the .dll functions. Something is odd because the functions work, except execRuntime(). And it all works fine on my machine, which is where I have R&R installed.____Anything I should look for?____thanks__Fred Emmerich

=> Using the .dll (getting an error)

Posted: Wed Oct 04, 2006 7:49 am
by kfleming
You need to have an RRW.INI file with the line:__PROGDIR32=____that points to the path where RRWRUN.EXE resides.____The error 2 means that RRWRUN.EXE cannot be found.____Kathleen__R&R Support

==> RE: Using the .dll

Posted: Wed Oct 04, 2006 10:19 am
by FRED_EMMERICH_(Guest)
What does RSWRUN.exe do? I created an app where I ran the Dbase 8.1 version and that was not a file I needed to make it work (or .ini).____thanks__Fred

==> RE: Using the .dll

Posted: Wed Oct 04, 2006 10:30 am
by FRED_EMMERICH_(Guest)
I set up the .ini file with the PRog32 set to the location of the .exe and it still generates the same error. My .ini and .exe are in the same directory as all the other files (.dll, .rsw, etc.)____

==> RE: Using the .dll (error)

Posted: Wed Oct 04, 2006 3:50 pm
by FRED_EMMERICH_(Guest)
DO I need RRWRUN.exe or RSWRUN.exe? I am using the SQL version.____Also, I have a .rsw file with an embedded .jpg. Runs fine in report designer and when I run it on my machine, but on the other users machine, I get an error saying it cannot find the .jpg. I thought the .jpg was embedded in the .rsw file??? Its not even on the development machine (my PC) and it runs fine. What gives?____thanks__Fred

===> RE: Using the .dll (error)

Posted: Wed Oct 04, 2006 4:03 pm
by kfleming
For the SQL version you need RSWRUN.EXE and the INI file would be RSW.INI____R&R does not embed the JPG. It just saves a path and filename for the image. If the image file cannot be found in the saved location, it uses the IMGDIR setting in the DEFAULTS section of RSW.INI.____Kathleen__R&R Support

====> RE: Using the .dll (error)

Posted: Wed Oct 04, 2006 4:22 pm
by FRED_EMMERICH_(Guest)
My .ini file does not have a IMGDIR directory spefieid,, actually IMGDIR is not in the file at all. Is there a way to have it use the current directory (the one with the .rsw file), wihtout having to hard code the directory name into the .ini file?____thanks__Fred