Hi,
I downloaded a code example that has this code
[red]
' Load the report
rptExpensiveProducts.Load("..\TenMostExpensiveProducts.rpt")
[/red]
Looks easy and makes sense. This works (but this code is on local drive)
My code is on a server.. But this code if it is saying look in your local folder I would think would work where ever I dropped it.
But I created a program.. It works if I hard code in the full Path, but not if I change the path to "..\reportname.rpt".
Is there something else I need to do to get this to work? Or is it due to the code being on the server. (I really don't want all code to fail if we choose to move code to a different server, so I don't want to be so hardcoded with the path")
Thanks
I downloaded a code example that has this code
[red]
' Load the report
rptExpensiveProducts.Load("..\TenMostExpensiveProducts.rpt")
[/red]
Looks easy and makes sense. This works (but this code is on local drive)
My code is on a server.. But this code if it is saying look in your local folder I would think would work where ever I dropped it.
But I created a program.. It works if I hard code in the full Path, but not if I change the path to "..\reportname.rpt".
Is there something else I need to do to get this to work? Or is it due to the code being on the server. (I really don't want all code to fail if we choose to move code to a different server, so I don't want to be so hardcoded with the path")
Thanks