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

RB 10.06/D2007/VISTA: Error: Cannot write in RBuilder.ini

edited April 2007 in General
Hi

When closing the designer in delphi designtime i get always the error
message:
"Cannot write into RBuilder.ini". And after closing the error messagebox i
cannot close the designview-window.

Can anyone help me?

Thanks and best regards
Robert

Comments

  • edited April 2007
    Hi Robert,

    In Vista, an application needs administrator rights in order to write files
    to most of the disk with the exception of the \Users\ area. To run Delphi
    as an administrator, you will need to either right click over the shortcut
    and select "Run as Administrator", or you can do so permanently by selecting
    the "Run Program as Administrator" checkbox in the "Compatibility" tab of
    the bds.exe or delphi32.exe file's properties dialog.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2007
    I don't think running an app as administrator is a good long term solution.

    Is there a way to move the RBuilder.ini file to another folder? Is there a
    way to designate the path to the files ReportBuilder would need write
    access?

    Should we perhaps reinstall ReportBuilder to its own directory off of the
    root drive instead of in the default directory? Do you think this would
    work ok?
  • edited April 2007
    Hi David,

    Sorry, I was not very clear about the solution. My previous post is a
    temporary solution to something that will be addressed for a later (Vista
    compliant) release of ReportBuilder. It is currently not possible to change
    the location of the RBuilder.ini file location.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2007
    Maybe it should be mentioned that it is possible to change the
    IniStorageType to Registry and store the information in an open key within
    the registry.
    I use this solution after having seen the same kind of problem with the ini
    file.
    Kind regards
    TorB.

    ****

  • edited April 2007
    Correct. For the applications that you build, you can use the
    Designer.IniStorageType and IniStorageName to control how and where ini
    settings are stored.

    At Delphi design-time, its a different story. The default of RBuilder.ini is
    used.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2007
    Hi Nico

    Thanks, now i works. :-)

    Best regards
    Robert

This discussion has been closed.