Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How set default save directory in designer?

edited October 2004 in General
How can I set the default directory for saving a report template in the
TppDesigner from code?

--
_Bill_

Comments

  • edited October 2004
    Hi Bill,

    Unfortunately there is no built in way to assign the default saving
    directory in ReportBuilder. If you take a look at the
    TppTemplate.ShowFileSaveDialog; procedure located in the ppTemplat.pas file
    you can see that the save dialog is local to that method. If this default
    directory is constant for your application, you could add a line of code to
    the RB source setting the lSaveDlg.InitialDir property.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2004
    Hi Bill,

    Sorry, you may also be able to use the Delphi method SetCurrentDir to assign
    the current directory. Then when the save dialog executes, the default
    directory should be the directory you set as the current directory.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.