Home DADE

DatabaseType

edited July 2004 in DADE
How can I make the Database Type property in Report Designer Database
Settings dialog match the current database ? That is, I would like the
report DatabaseType property match the current alias database, not Paradox
as it shows when I create a new report.

Thanks in advance,


Mauro Assis
Athena

Comments

  • edited July 2004
    Hi Mauro,

    You need to set the TppDesigner.DataSettings.DataBaseType property to the
    database type of your choice. This is a published property so it can be
    accessed from the object inspector in Delphi design time or at run time
    using the TppDataBaseType types in the ppTypes.pas file.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2004
    Nico,

    I'm in trouble with run-time reports. The application that we create runs
    against MSSQL, Oracle or Cach? databases. When the user opens the Report
    Designer, the TppDesigner.DataSettings.DataBaseType points to Paradox,
    despite I'm conected in Oracle or MSSQL. I tried to modify this correctly on
    the OnCreate event of the DataModule that contains the Report Designer, but
    it changes to Paradox in some moment after that.

    That is: I'd like that, when the user creates a new report, the
    TppDesigner.DataSettings.DataBaseType indicates the correct database type
    the aplication area connected.

    Thanks again,

    Mauro Assis

  • edited July 2004
    Hi Mauro,

    The OnCreate event of the datamodule is too late to modify the database
    type. I would suggest trying the TppDesigner.OnShow or perhaps the
    Report.Template.New events to set this property.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.