connect string in frxSDACDatabase just before ShowReport (FastReport 3)
Posted: Mon 08 Oct 2007 19:47
Hello,
I have a problem with setting a connect string in frxSDACDatabase object.
When I design report I've got a connect string for my local database and ShowReport works ok, but when I send this report to my clients there is neccesary to set a connect string to MSConnection.ConnectString.
I've got a frxSDACComponents1.DefaultDatabase set on MSConnection, but when FastReport.ShowReport is called, a FastReport tried to connect to my local database.
Is it possible to set this connection string just before method FastReport.ShowReport ? I tried to set this string when OnStartReport is called, but it is to late.
kind regards
Zbigniew Sorokowski
I have a problem with setting a connect string in frxSDACDatabase object.
When I design report I've got a connect string for my local database and ShowReport works ok, but when I send this report to my clients there is neccesary to set a connect string to MSConnection.ConnectString.
I've got a frxSDACComponents1.DefaultDatabase set on MSConnection, but when FastReport.ShowReport is called, a FastReport tried to connect to my local database.
Is it possible to set this connection string just before method FastReport.ShowReport ? I tried to set this string when OnStartReport is called, but it is to late.
kind regards
Zbigniew Sorokowski