if you mean relative to the exe, then use :
MyPath:=IncludeTrailingBac
MyFile:=MyPath+'MyFile.Wmi
if you want more clues than that you will have to tell us what properties of what objects you want to set in run-time
Main Topics
Browse All TopicsHi,
I would like to use dynamic path for my wmi file with chart.
Can you show me how can i set up the filelink property of metafile in runtime.
There is no problem with static but it`s not what i need.
BR
Vaalar
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi Guys,
Sry for maybe not very clear explanation, I was in hurry.
Here is my situation:
I have got an application which user can install in directory of his or her choice.
I have solved the problem with ini files using the this:
ExtractFilePath(ParamStr(0
Guys i have noticed that nobody reads the tags info in the questions - I have put there info that this is RAVE REPORTS 7.5 - object METAFILE and property file link -
I will check your suggestions and put an info up here in about 30 min.
I`m very grateful for you help.
BR
Vaalar
Oh i know what you're talking about!
Pass the path as a parameter to rave
Then create an OnBeforePrint event in rave and pass the parameter to the FileLink property.
That's how I put images that are created dynamically at runtime into my rave reports.
1. Add the parameter name to your parameters list in Rave. To do this, click on your RaveProject, that's the first node on the right inside your Rave Project. Edit the Parameters property (on the left). This is a list of strings. Add pMyPath.
2. Inside Delphi, send the path to the parameter in rave, e.g.:
rvproject1.SetParam('pMyPa
3. In your onbefore print in rave, link the FileLink to the parameter. You can either click on the MetaFile component, but it's recommended to click on the parent of the MetaFile component because it gets printed first, in fact it's even more recommended to print on the band/databand BEFORE that band, but in any case, click on the band, click on Events, choose the onBeforePrint event, and type:
MetaFile1.FileLink := RaveProject.GetParam('pMyp
Don't forget to Compile the rave project and save it.
Good luck
Business Accounts
Answer for Membership
by: mlmccPosted on 2009-11-03 at 08:02:14ID: 25730282
What reporting tool are you using?
mlmcc