VB6, Runtime ocx

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Alan_Klein
Posts: 68
Joined: Tue Oct 10, 2017 12:44 pm

VB6, Runtime ocx

Post by Alan_Klein » Mon Mar 14, 2005 4:59 pm

Hi Kathleen et al,____I have a VB6 app that has used R&R for several years now. For a new version, I would like to install the app in the Program Files folder (until now it has always been in the root folder). When I do that, it returns an "Invalid command line argument" error. THis is true no matter what folder I put it in if the folder has a space in its name. Where should I be looking to correct this?____The RSReport1.ReportName = "C:Program filesTwtk30filename.rsw"____Thanks!

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: VB6, Runtime ocx

Post by kfleming » Tue Mar 15, 2005 8:18 am

Are you saying that the error occurs when the reports are in a directory with whose path contains a space or when the runtime executable is in a directory whose path contains a space? __Which version of R&R are you using?____Kathleen__R&R Support

Alan_Klein
Posts: 68
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: VB6, Runtime ocx

Post by Alan_Klein » Thu Mar 17, 2005 1:51 am

I have not tested it with the app in a folder without a space in its path and the reports in a folder with a space. The situation is that either both have a space or both do not.____The reports are in a subfolder of the main app folder, so the path is usually either:____C:Twtk20 for the app__and__c:Twtk20Reports for the reports____or____C:Program FilesTwtk20 for the app__and__c:Program FilesTwtk20Reports for the reports____I suspect it is the location of the reports that is the issue, since it talks about an invalid command line argument, but I am not sure.____We would rather the users put the app in the root folder, but many companies require apps to be installed in the Program Files folder.

Alan_Klein
Posts: 68
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: VB6, Runtime ocx

Post by Alan_Klein » Thu Mar 17, 2005 1:53 am

This has shown up with Arpeggion 2.0, R&R 10+, and R&R 11.0.001.

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: VB6, Runtime ocx

Post by kfleming » Thu Mar 17, 2005 10:25 am

I just created a quick project and this code worked just fine for me:____Private Sub Command1_Click()__RSReport1.ReportName = "C:program filesReportWorkssampleBasic Columnar Report.RSW"__RSReport1.Destination = 1__RSReport1.Action = 1__End Sub______Kathleen__R&R Support

Post Reply