Incorrect Database Type is shown in editor Data Settings
Hi,
I'm finding that if I specifiy the database type in code, when I open the
editor and view the data settings, the database type I've specified is not
selected and prevents correct operation.
I've using ADO to connect to some DBase files but when I open the Data
settings dialog, the DatabaseType is always defaulting to
MSAccess instead of Other.
with ppReportExplorer1.Designer.DataSettings do
begin
SessionType := 'ADOSession';
DatabaseName := 'ADOConnection';
DatabaseType := dtOther;
end;
Another example is when I'm using the Session.GetDatabaseType to determine
the database type. My connection is a MySQL connection but dtInterbase is
returned?
e.g.
DatabaseType := lSession.GetDatabaseType('dbReport');
Any suggestions on how to resolve this. It's only a problem because in our
application we disable the data settings dialog for the end user, so they
can't correct the settings themselves.
Thanks Again,
Chris.
I'm finding that if I specifiy the database type in code, when I open the
editor and view the data settings, the database type I've specified is not
selected and prevents correct operation.
I've using ADO to connect to some DBase files but when I open the Data
settings dialog, the DatabaseType is always defaulting to
MSAccess instead of Other.
with ppReportExplorer1.Designer.DataSettings do
begin
SessionType := 'ADOSession';
DatabaseName := 'ADOConnection';
DatabaseType := dtOther;
end;
Another example is when I'm using the Session.GetDatabaseType to determine
the database type. My connection is a MySQL connection but dtInterbase is
returned?
e.g.
DatabaseType := lSession.GetDatabaseType('dbReport');
Any suggestions on how to resolve this. It's only a problem because in our
application we disable the data settings dialog for the end user, so they
can't correct the settings themselves.
Thanks Again,
Chris.
This discussion has been closed.
Comments
By default, if dtOther is selected, the default Database type is used for
that plugin. Inside the daADO.pas file change the result of the
TdaADOSession.GetDatabaseType routine to "dtOther" and see if that solves
the issue.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com