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

RBuilder.Ini on Windows XP

edited April 2003 in General
I have a customer with a windows xp machine and every time that they
closed the report writer preview form they got an error cannot write
to RBuilder.ini. They did not have an RBuilder.ini file in the Winnt
directory and when a tech person created that file in the c:\winnt
directory the report writer closed fine. Shouldn't the report writer
create this file automatically or was this maybe a rights issue and
the user running our app that originally got the error did not have
rights to this directory? Is there a way to trap for this? The app
in question is using version 5.55 and we cannot update for various
reasons to the current version.

Comments

  • edited April 2003
    Hi Jeff,

    yes this is a rights issue. Since ReportBuilder 6 you can define the location or using the registry as storage.
    But since you mean that you cannot update to the actual version I would check at startup if the file exists. When this isn't the case try to create it, if it fails show a message that the user need r/w access for that file.

    regards,
    Chris Ueberall;
  • edited April 2003
    So, in the code, for the report writer version we have would I look in the windows directory for RBuilder.ini by using the GetWindowsDirectory function? Or is there some other spot in the Report writer code it is getting this
    directory from?

  • edited April 2003
    Hi Jeff,

    using the Windows API function is the right decision.

    regards,
    Chris Ueberall;
This discussion has been closed.