Cast Sqlite Connection
Stark
Syria
Hi , have a good day
When ever this code executing I got the error message as the Attachment picture explain ...
I wonder if there is a way to get around this error
or is there is another way to hide connection properties
P.S :
My Report is work ( 100 % ) Fine with out the above code ,
Kind regards ,
When ever this code executing I got the error message as the Attachment picture explain ...
FastReport.Data.SQLiteDataConnection ReportConnection = (FastReport.Data.SQLiteDataConnection)fastreport.FindObject("Connection");
ReportConnection.Restrictions = Restrictions.HideAllProperties;
I wonder if there is a way to get around this error
or is there is another way to hide connection properties
P.S :
My Report is work ( 100 % ) Fine with out the above code ,
Kind regards ,
Comments
As you can see, there are two copies of the same dll (FastReport.SQLite.dll). One is included into your project and the second is used in FastReport. You may do it easier:
In this case, you don't need to include a reference to FastReport.SQLite.dll into your project.
Another thing I wish you try it ,,,
try to deploy a WinForm Application with Fast Report that using "SQLiteDataConnection" as DataSource , On ( a Clean Machine )
it's really painful ,
* every time I deploy it , I should edit the FastReport Config file , in "..\..\AppData" folder , and add the plug in manually
Otherwise , I will got message "Missing Object SqliteDataConnection"
Even if the Fastreport.sqlite.dll in GAC or in the same application folder ...
And yes Had the same issue
however , I solved it by Including the SqliteConnection Classes , into FastReport Source Code and rebuild it ...
And every thing work fine , with out the pain of editing FastReport Config
Thank you , in advance ,,,
and, don't use config file in this case.
it's strange for me too ,
My Application work fine inside Visual studio
Once I copy it , to another location , It's fail and said "Missing Object SqliteDataConnection"
even if the all the Dll's in the same folder of My Application
I will build an example for this case ,
thank you for your support ....