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

Problema com IniStorageName

edited May 2008 in General
Ola a todos,

Estou tendo problemas com a propriedade IniStorageName. Tenho um arquivo
RBuilder.ini personalizado, gravado na pasta do arquivo .exe, e gostaria
de carregá-lo em runtime. Isso é possível?

Estou usando o código abaixo:

procedure Form1.Button1Click(Sender: TObject);
begin
ppDesigner1.IniStorageName := 'c:\myapp\rbuilder.ini';
end;

Entretanto, as configurações de 'c:\myapp\rbuilder.ini' não são
carregadas para o Designer. Como posso fazer isso?

Usando: Delphi 7, RB 7.04

Obrigado,
Laércio

Comments

  • edited May 2008

    Can you post the question using English. If not then perhaps someone that
    knows Portuguese can try to help you.


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited May 2008
    Nard Moseley (Digital Metaphors) escreveu:
    Hi All,

    Sorry for any inconvenience, my English is a bit poor, but I'll try to
    explain my problem.

    I'm having problems with IniStorageName property when setting it at
    runtime. I have a custom version of RBuilder.ini, that is saved on same
    app folder, and I need to load the .ini configuration at runtime,
    depending on user that connect to my app. Is it possible?

    I'm using the following code:

    procedure Form1.Button1Click(Sender: TObject);
    begin
    ppDesigner1.IniStorageName := 'c:\myapp\rbuilder.ini';
    end;

    But, with this code above, the 'c:\myapp\rbuilder.ini' configuration
    aren't load (that is, does not change) the Designer.
    By the way: the name of the 'rbuilder.ini' can change depending on the
    user that connect to my app. Is it clear?
    How can I do this?

    Using: Delphi 7, RB 7.04

    TIA,
    Laércio
This discussion has been closed.