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

Cannot write to rbuilder.ini

edited December 2007 in General
Hi,


Using 10.07 standard on Vista Business and D2007.


Comments

  • edited December 2007
    Andrew,

    The RBuilder.ini issue will only affect your users if they are using the
    End-User Designer. If so, you can change the TppDesigner.IniStorageType to
    "Registry" or alter the location of the IniStorageName property to a
    writeable directory and the issue will be resolved.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2007
    Nico,

    I'm getting this error at run-time when not using the designer, but when
    previewing reports. Also, I can't see how to change the IniStorageType,
    where is it?

    Many thanks

    Andy

  • edited December 2007

    The Previewer, like the Designer uses the theme based architecture. The
    theme name is stored in RBuilder.ini.

    Here is an example of changing the location of RBuilder.ini...

    uses
    ppIniStorage;

    var
    lsStorageName: String;
    begin
    lsStorageName := 'c:\temp\RBuilder.ini'
    TppIniStoragePlugIn.SetStorageName(lsStorageName );

    end;


    Here is an example configuring the ini storage to use the registry..

    uses
    ppIniStorage;

    begin

    // configure the ini storage to use the registry
    ConfigureIniStorage(TppRegistry.ClassDescription,
    TppRegistry.DefaultStorageName);


    end;


    procedure ConfigureIniStorage(aStorageType, aStorageName: String);
    var
    lIniStorageClass: TppIniStorageClass;
    begin

    lIniStorageClass := TppIniStoragePlugIns.GetClassForName(aStorageType);

    if (lIniStorageClass <> nil) then
    begin
    TppIniStoragePlugIn.SetClass(lIniStorageClass);
    TppIniStoragePlugIn.SetStorageName(aStorageName);
    end;

    end;


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2007
    Nard,

    Works a treat, many thanks.

    Andy

This discussion has been closed.