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

Incorrect Database Type is shown in editor Data Settings

edited August 2010 in End User
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.

Comments

This discussion has been closed.