How to get Designer to open files in a specific folder

edited 4:52PM in FastReport 4.0
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:
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

  • gordkgordk St.Catherines On. Canada.
    edited 4:52PM
    default is application dir.
    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
  • edited 4:52PM
    Hi, Gordk,

    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.
    gordk wrote: »
    works fine for me...

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.