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

Error in Reports in Databases

edited September 2003 in General
I have been working with RB 603 without problem. Now i'm trying to start
using rb703. I have all my reports saved in a IB Database. if i put in a
form a ppdesigner and a ppreport and then i execute the application and i
open the designer, i get an error 'Record not found'. if i assign a report
to the ppreport.DatabaseSettings.Name, then i can open the designer without
problem. I thing that when a ppreport is created and the property of
databasesettings are assigned try to load the report, although the Name of
the report is not assigned. This was working fine in 603

Regards

--
Jes?s Angel Garc?a Zarco
Cointec


CL?USULA DE CONFIDENCIALIDAD: COINTEC S.L garantiza la confidencialidad de
los datos que obran en su poder y seg?n lo estipulado por la LOPD (Ley
Org?nica 15/1999 de 13 de diciembre de Protecci?n de Datos de Car?cter
Personal). Este mensaje se dirige exclusivamente al destinatario consignado.
Puede contener informaci?n confidencial, de nuestra propiedad o legalmente
protegida. Si usted no es el destinatario, le informamos que cualquier
acceso, divulgaci?n, copia o distribuci?n de la informaci?n, as? como
cualquier acci?n u omisi?n realizada con base a la misma, queda prohibida y
puede ser ilegal. En caso de haber recibido este mensaje por error, le
rogamos que nos lo reenv?e y notifique inmediatamente, borrando toda copia
de su sistema. Gracias.

Comments

  • edited September 2003
    Hi Jesus,

    As a test try connecting a DBGrid component to the database and see if you
    are able to retrieve all the needed fields to run the end-user solution with
    ReportBuilder. You need to make sure all the RB database settings are
    property set to successfully gather all the data it needs to run your
    application. There is more than likely a naming problem for one of the
    tables or fields as this is usually the problem when the "Record Not Found"
    error occurs.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2003
    I think i have not explained well. First the same code works fine with
    RB 6.03. If i compile the application with RB7.03 i get the error.

    I have a form with a ppreport and a datamodule with the pipelines. With
    this ppreport i load reports from database and print them. If i assign in
    designtime the properties of the ppreport to

    with ppInforme.Template do begin
    DatabaseSettings.DataPipeLine := dmInforme.plInforme;
    DatabaseSettings.NameField := 'ELEMENTO';
    DatabaseSettings.TemplateField := 'PLANTILLA';
    end;

    when i create the form i get the error Record not found. if i leave this
    properties empty in designtime and in runtime in the event oncreate of the
    form i assign them all runs ok.

    I have another form with a ppReport, a ppDesigner and a ppExplorer. if i
    try to do this i get ever Record not found when i create the form. if i
    assign an existing reportname to

    with ppReport.Template do begin
    DatabaseSettings.DataPipeLine := dmInforme.plInforme;
    DatabaseSettings.Name := 'A REPORT NAME'

    CL?USULA DE CONFIDENCIALIDAD: COINTEC S.L garantiza la confidencialidad de
    los datos que obran en su poder y seg?n lo estipulado por la LOPD (Ley
    Org?nica 15/1999 de 13 de diciembre de Protecci?n de Datos de Car?cter
    Personal). Este mensaje se dirige exclusivamente al destinatario consignado.
    Puede contener informaci?n confidencial, de nuestra propiedad o legalmente
    protegida. Si usted no es el destinatario, le informamos que cualquier
    acceso, divulgaci?n, copia o distribuci?n de la informaci?n, as? como
    cualquier acci?n u omisi?n realizada con base a la misma, queda prohibida y
    puede ser ilegal. En caso de haber recibido este mensaje por error, le
    rogamos que nos lo reenv?e y notifique inmediatamente, borrando toda copia
    de su sistema. Gracias.
  • edited September 2003
    Hi Jesus,

    Are you able to recreate this issue using our InterBase Demos? If so,
    please provide the exact steps you took to recreate the problem, or send a
    small example demonstrating the problem in .zip format to
    support@digital-metaphors.com and we'll work to find a fix to this problem.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2003
    Ok, i have found the problem. Set the property Saveastemplate to true and
    the error raises

    --
    Jes?s Angel Garc?a Zarco
    Cointec


    CL?USULA DE CONFIDENCIALIDAD: COINTEC S.L garantiza la confidencialidad de
    los datos que obran en su poder y seg?n lo estipulado por la LOPD (Ley
    Org?nica 15/1999 de 13 de diciembre de Protecci?n de Datos de Car?cter
    Personal). Este mensaje se dirige exclusivamente al destinatario consignado.
    Puede contener informaci?n confidencial, de nuestra propiedad o legalmente
    protegida. Si usted no es el destinatario, le informamos que cualquier
    acceso, divulgaci?n, copia o distribuci?n de la informaci?n, as? como
    cualquier acci?n u omisi?n realizada con base a la misma, queda prohibida y
    puede ser ilegal. En caso de haber recibido este mensaje por error, le
    rogamos que nos lo reenv?e y notifique inmediatamente, borrando toda copia
    de su sistema. Gracias.
    "Nico Cizik (Digital Metaphors)" escribi? en
    el mensaje news:3f61f21e$1@dm500....
    | Hi Jesus,
    |
    | Are you able to recreate this issue using our InterBase Demos? If so,
    | please provide the exact steps you took to recreate the problem, or send a
    | small example demonstrating the problem in .zip format to
    | support@digital-metaphors.com and we'll work to find a fix to this
    problem.
    |
    | --
    | Cheers,
    |
    | Nico Cizik
    | Digital Metaphors
    |
    | "Jesus Garcia Zarco(Cointec)" wrote in
    message
    | news:3f60ad99@dm500....
    | > I think i have not explained well. First the same code works fine
    with
    | > RB 6.03. If i compile the application with RB7.03 i get the error.
    | >
    | > I have a form with a ppreport and a datamodule with the pipelines.
    | With
    | > this ppreport i load reports from database and print them. If i assign
    in
    | > designtime the properties of the ppreport to
    | >
    | > with ppInforme.Template do begin
    | > DatabaseSettings.DataPipeLine := dmInforme.plInforme;
    | > DatabaseSettings.NameField := 'ELEMENTO';
    | > DatabaseSettings.TemplateField := 'PLANTILLA';
    | > end;
    | >
    | > when i create the form i get the error Record not found. if i leave this
    | > properties empty in designtime and in runtime in the event oncreate of
    the
    | > form i assign them all runs ok.
    | >
    | > I have another form with a ppReport, a ppDesigner and a ppExplorer.
    if
    | i
    | > try to do this i get ever Record not found when i create the form. if i
    | > assign an existing reportname to
    | >
    | > with ppReport.Template do begin
    | > DatabaseSettings.DataPipeLine := dmInforme.plInforme;
    | > DatabaseSettings.Name := 'A REPORT NAME'
    | <==========
    | > DatabaseSettings.NameField := 'ELEMENTO';
    | > DatabaseSettings.TemplateField := 'PLANTILLA';
    | > end;
    | > then all runs ok.
    | >
    | > if i assign
    | > with ppReport.Template do begin
    | > DatabaseSettings.DataPipeLine := dmInforme.plInforme;
    | > DatabaseSettings.Name := ''
    | > DatabaseSettings.NameField := 'ELEMENTO';
    | > DatabaseSettings.TemplateField := 'PLANTILLA';
    | > end;
    | >
    | > then i get the error just when i create the form. I think that the
    | component
    | > try to load a report even if the property Name is not assigned
    | > --
    | > Jes?s Angel Garc?a Zarco
    | > Cointec
    | >
    | >
    | > CL?USULA DE CONFIDENCIALIDAD: COINTEC S.L garantiza la confidencialidad
    de
    | > los datos que obran en su poder y seg?n lo estipulado por la LOPD (Ley
    | > Org?nica 15/1999 de 13 de diciembre de Protecci?n de Datos de Car?cter
    | > Personal). Este mensaje se dirige exclusivamente al destinatario
    | consignado.
    | > Puede contener informaci?n confidencial, de nuestra propiedad o
    legalmente
    | > protegida. Si usted no es el destinatario, le informamos que cualquier
    | > acceso, divulgaci?n, copia o distribuci?n de la informaci?n, as? como
    | > cualquier acci?n u omisi?n realizada con base a la misma, queda
    prohibida
    | y
    | > puede ser ilegal. En caso de haber recibido este mensaje por error, le
    | > rogamos que nos lo reenv?e y notifique inmediatamente, borrando toda
    copia
    | > de su sistema. Gracias.
This discussion has been closed.