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

variable question

edited February 2003 in End User
In the design view of a report, how do I assign a value or a calculation to
a variable?

thank you
Chris Lawery

Comments

  • edited February 2003
    see reportbuilder.general
  • edited June 2009
    I have the same problem, with duplpicate resources when use ppDesigner unit.

    But Can't open the reportbuilder.general, Is it with problem?

    Can you give me the solution in this forum?

    Sorry post it here, but I am at least one week with this problem.

    Thanks in Advance

  • edited June 2009
    Hi José,

    Be sure you are using the Enterprise version of ReportBuilder. At runtime,
    you need to add raIDE to your uses clause.

    http://www.digital-metaphors.com:8080/End-User/Fundamentals/Registration_of_Components

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2009
    Thank you for your quick reply.

    I added the raIDE unit in the uses clause, but still getting error.

    As the other user said, my delphi compiles the RB demos that has the
    designer , but doesn't compile my application that has a lot of RB reports.
    This week I decided to add the designer to allow my clients to adjust the
    report layout. So is the first time I use ppDesigner unit.

    I am using the enterprise version, D7.

    I put the linker messages below,


    Cheers,
    Jos?.










    [Error] WARNING. Duplicate resource(s):

    [Error] Type 6 (STRING), ID 43101:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Alinhar
    rodap?s"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Alinhar
    rodap?s"

    [Error] Type 6 (STRING), ID 43102:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Alinhar os
    centros verticais"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Alinhar os
    centros verticais"

    [Error] Type 6 (STRING), ID 43103:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Alinhar as
    margens esquerdas"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Alinhar as
    margens esquerdas"

    [Error] Type 6 (STRING), ID 43104:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Alinhar as
    margens direitas"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Alinhar as
    margens direitas"

    [Error] Type 6 (STRING), ID 43105:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Alinhar os
    Topos"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Alinhar os
    Topos"

    [Error] Type 6 (STRING), ID 43106:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Alinhar os
    centros horizontais"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Alinhar os
    centros horizontais"

    [Error] Type 6 (STRING), ID 43107:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Centralizar
    horizontalmente na faixa"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded:
    "Centralizar horizontalmente na faixa"

    [Error] Type 6 (STRING), ID 43108:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Centralizar
    verticalmente na faixa"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded:
    "Centralizar verticalmente na faixa"

    [Error] Type 6 (STRING), ID 43109:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Aumentar para a
    maior altura"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Aumentar
    para a maior altura"

    [Error] Type 6 (STRING), ID 43110:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Aumentar para a
    maior largura"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Aumentar
    para a maior largura"

    [Error] Type 6 (STRING), ID 43111:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Diminuir para a
    menor altura"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Diminuir
    para a menor altura"

    [Error] Type 6 (STRING), ID 43112:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Diminuir para a
    menor largura"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Diminuir
    para a menor largura"

    [Error] Type 6 (STRING), ID 43113:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Espa?ar
    igualmente, na horizontal"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Espa?ar
    igualmente, na horizontal"

    [Error] Type 6 (STRING), ID 43114:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Espa?ar
    igualmente, na vertical"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Espa?ar
    igualmente, na vertical"

    [Error] Type 6 (STRING), ID 43115:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Esquerda para
    Direita"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Esquerda
    para Direita"

    [Error] Type 6 (STRING), ID 43116:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Direita para
    Esquerda"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Direita
    para Esquerda"

    [Error] Type 6 (STRING), ID 43117:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Tipos de Linha"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Tipos de
    Linha"

    [Error] Type 6 (STRING), ID 43118:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Tipos de
    pol?gonos"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Tipos de
    pol?gonos"

    [Error] Type 6 (STRING), ID 43119:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Ajuste o valor"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Ajuste o
    valor"

    [Error] Type 6 (STRING), ID 43120:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "&Editar"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "&Editar"

    [Error] Type 6 (STRING), ID 43121:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Trazer para a
    &Frente"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Trazer
    para a &Frente"

    [Error] Type 6 (STRING), ID 43122:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "&Copiar"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "&Copiar"

    [Error] Type 6 (STRING), ID 43123:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Recor&tar"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Recor&tar"

    [Error] Type 6 (STRING), ID 43124:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Apa&gar"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Apa&gar"

    [Error] Type 6 (STRING), ID 43125:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Co&lar"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Co&lar"

    [Error] Type 6 (STRING), ID 43126:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "&Refazer"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "&Refazer"

    [Error] Type 6 (STRING), ID 43127:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Selecion&ar
    Tudo"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded:
    "Selecion&ar Tudo"

    [Error] Type 6 (STRING), ID 43128:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Enviar para
    &Tr?s"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "Enviar
    para &Tr?s"

    [Error] Type 6 (STRING), ID 43129:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "Resta&urar"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded:
    "Resta&urar"

    [Error] Type 6 (STRING), ID 43130:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "&Desfazer"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "&Desfazer"

    [Error] Type 6 (STRING), ID 43131:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "&Arquivo"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "&Arquivo"

    [Error] Type 6 (STRING), ID 43132:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "&Fechar"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "&Fechar"

    [Error] Type 6 (STRING), ID 43133:

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.res string kept: "&Novo"

    [Error] File C:\Delphi7\RBuilder\Lib\rbIDE.Res string discarded: "&Novo"

    [Fatal Error] Compilation terminated; too many errors




  • edited June 2009

    Try using the Delphi 'Find in Files' utility against the RBuilder\Source and
    against your own source code. Search for 'rbIDE.res'.

    When I do that it finds a single occurence, in
    RBuilder\Source\ppFormWrapper.pas. (I am using RB 11)

    The entry looks like this..

    implementation

    {design-time strings}
    {$R rbIDE.res}

    The above code '{$R rbIDE.res}', links the resource file into your project.
    If you have two units with that code, then the .res file will be linked into
    the .exe twice and the linker will generate those duplicate resource errors.

    Perhaps you have corrupt installation.

    http://www.digital-metaphors.com/rbWiki/General/Installation/Cleaning_Up_a_Corrupt_Install


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2009

    Hi,

    I followed the cleaning up wiki, and install RBuilder aigain.

    I also did the search against RBuilder\Source to find any 'rbIDE.res'
    occurence, and have only one in ppFormWrapper as you told in the post.


    So, I did the same search against my project, ans I found a unit with the
    'rbIDE.res', now my application is compiling and running.


    I have a unit that the user can configure the printer setup.
    So, I use the sample unit dm0121.pas as the base to my implementation and
    this 'rbIDE.res' came with it.

    I amm very happy that I fix my problem with your help,


    Thank you so much,

    Jos?.






    here is the code in the 1.Reports sample dir:
    var
    frm0121: Tfrm0121;

    implementation


    {$R *.DFM}

    {note: the ReportBuilder IDE strings are in rbIDE.res}

    {$R rbIDE.Res}


    {------------------------------------------------------------------------------}
    { Tfrm0121.Init}

    procedure Tfrm0121.Init;
    begin
    {initialize inherited properties for the demo form}
    AssignViewer := True;
    DisplayForm := True;
    end;






This discussion has been closed.