Trouble with directories
-
- Posts: 170
- Joined: Tue Oct 10, 2017 12:44 pm
Trouble with directories
I developed an app that uses the .dll and it ran fine until I changed the name of the directory from New Folder to OBO. I thought it was something in the .ini file but this is my .ini and even though the files are set to the OBO directory, when the actual directory is named that I get error code 2 executing execRuntime().____Is there some setting I am missing? I set the OBC to the proper directory before I call execRuntime().____[Export]__Export1=Excel PivotTable, RRXTAB.DLL__Export2=Excel Chart, RRXCHART.DLL__[Defaults]__ProgDir32=S:FredEmmerichOBO\__TemplateDir=S:FredEmmerichOBO\__IMGDIR=S:FredEmmerichOBO\__DefMeas=1__PgLM=1__BotM=20__LeftM=20__RightM=20__TopM=20__RulPit=10__VRulPit=10__Pts=80__SnapTo=1__Color=0__FaceName=Arial__LogF=F__LogT=T__[Data Dictionary]__DataDict=C:Program FilesR&R SQL Report WriterSample
rdict.dbf__DataDictIndex=C:Program FilesR&R SQL Report WriterSample
rdict.ndx__[User Info]__UserName=Frederick W. Emmerich__Company=Emmerich & Associates__[Frame]__Show=3__Left=90__Top=62__Right=1134__Bottom=964__[Save List]__BandWidth=80__ActionBar=1__FormatBar=1__FieldNames=0__PasteArgs=1__ShHzRul=1__ShVtRul=1__ShGrd=1__ShowCalcComment=1__IVer=2__CloseInsDlg=0__Library32=C:Documents and SettingsemmerichDesktopS1Misc ProgramsOBO ReportTestReport.RSW__Report32=C:Documents and SettingsemmerichDesktopS1Misc ProgramsOBO ReportTestReport.RSW__ShTopHzRul=1__ShBotHzRul=1__ShLfVtRul=1__ShRtVtRul=1__[Recent File List]__File1=C:Documents and SettingsemmerichDesktopOBO ReportCodeTestReport.RSW__
=> RE: Trouble with directories
Is RSWRUN.EXE in S:FredEmmerichOBO ?____Kathleen__R&R Support
-
- Posts: 170
- Joined: Tue Oct 10, 2017 12:44 pm
==> RE: Trouble with directories
Yes it is. I thought by changing the directories in the .ini to be the same as my new directory name, I would be set, but it doesn^t work. Somewhere, it is still looking for the old directory name but I cannot determine where.
-
- Posts: 170
- Joined: Tue Oct 10, 2017 12:44 pm
==> RE: Trouble with directories
I discovered if I create the s:FredEmmerichNew Folder directory and put rswrun.exe in it, everything works fine. I found another .ini in c:windows that has s:FredEmmerichNew Folder in the ProgDir32 variable. When I change it to be the OBO directory, it works as it should.____My question now is, why is it using the c:windows version of the .ini and not the one in the current directory? I have had other users run this report (using runtime) so I am guessing it looks to c:windows first then the local directory for a .ini file. If this is the case it really make it diffucult on my machine to develop reports and try to test them.