How to get Designer to open files in a specific folder
Hi,
Thanks again for the expert replies to my previous question. Here is another one...
I am allowing my program users to modify reports using the Designer. But I want to point them to the correct folder so that when they do a File|Open within the Designer they can see the reports.
I tried to set the OpenDir property before calling the Designer:
But the OpenDir property seems to be ignored by the Designer.
The Designer does remember the previous folder for a File|Open - where is that information kept and can I get at it to change it?
Thanks for any advice,
Regards,
PhilW.
Thanks again for the expert replies to my previous question. Here is another one...
I am allowing my program users to modify reports using the Designer. But I want to point them to the correct folder so that when they do a File|Open within the Designer they can see the reports.
I tried to set the OpenDir property before calling the Designer:
frxDesigner1.OpenDir := IncludeTrailingPathDelimiter(FFormsFolder) + MASTERFORMS;
frxReport1.DesignReport;
But the OpenDir property seems to be ignored by the Designer.
The Designer does remember the previous folder for a File|Open - where is that information kept and can I get at it to change it?
Thanks for any advice,
Regards,
PhilW.
Comments
dont't for get your string delimiters the property is a string and the folder must exist
ie
frxreport1.clear
frxdesigner1.opendir :='C:\Documents and Settings\Administrator\My Documents\My fr4 d12 projects\subreports\testfolder';
frxreport1.designreport;
works fine for me
You are quite right. A difference between development and live environments meant the the folder I was trying to set did not exist.
Thanks for the advice,
Regards,
PhilW.