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.
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?
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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
Works a treat, many thanks.
Andy