DatabaseType
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
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
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com