rbuilder.ini
I am getting this error
"Cannot create file "C:\Windows\system32\RBuilder.ini". Permission denied"
from
TppPrintPreview
when previewing a report in the viewer.
I am using Delphi2010 RB 12.02
I know the setting IniStorageType/name on the designer component, but
this occurs when viewing the report, and the setting is IniNone anyway.
How do I get rid of this error ?
Best regards
René/SSV
"Cannot create file "C:\Windows\system32\RBuilder.ini". Permission denied"
from
TppPrintPreview
when previewing a report in the viewer.
I am using Delphi2010 RB 12.02
I know the setting IniStorageType/name on the designer component, but
this occurs when viewing the report, and the setting is IniNone anyway.
How do I get rid of this error ?
Best regards
René/SSV
This discussion has been closed.
Comments
Starting with RB 11 the default location for RBuilder.ini is
($LocalAppData)\RBuilder\RBuilder.ini which at run-time resolves to the
user's local app data folder - C:\Users\[Username]\AppData\Local\RBuilder.
This in compliance with the latest Windows security standards.
As a test try creating a new Delphi project. Add a report and call print in
a button click event. You will not get the permission denied error. Add a
TppDesigner to the same form, you will not get the permission denied error.
When migrating old projects you need to find all occurrences of TppDesigner
in your Delphi project and update the IniStorageName to
($LocalAppData)\RBuilder\RBuilder.ini . ( Even if you are not displaying the
designer, the IniStorageName will override the default. )
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
... and when you have several tppdesigner's in your programcode, some
with new setting some with old setting it might be difficult to predict
which setting will win !?
Going through the designers I found 1 with the wrong setting.
I think it works now.
René /SSV
Den 21-06-2012 16:14, Nard Moseley (Digital Metaphors) skrev: