Problem getting datasource from SQL Server database
Bosko
Belgrade, Serbia
I have a few active databases on SQL Server 2005.
In one I am working mostly, FastReport is doing just fine.
Now I am trying to create some reports on another database, but I just can't get any datasource in a new connection I created.
This is the procedure I am going thru:
1. Create new report
2. Actions->New Data Source
3. New Connection -> Setting parameters for the new connection -> Test Connection button gives a message: "Test conenction succeeded."
4. Gathering tables and views from databases works fine. I can see all tables in a TreeView.
5. Then I check a table (or create a new SqlQuery for a custom table in a report)
6. Finish -> I am getting an error there. "Object reference not set to an instace of an object".
This is not happening in all databases. I guess there is something wrong with the data in that database, or with the tables, relations, I dont know.
I did all this from Demo.exe.
This is the message details, it does not meen anything to me, but maybe somebody can figure it out what is happening.
Please, help me with this, I need it to work with that database.
Thanks in advance, Bosko Kukanjac
In one I am working mostly, FastReport is doing just fine.
Now I am trying to create some reports on another database, but I just can't get any datasource in a new connection I created.
This is the procedure I am going thru:
1. Create new report
2. Actions->New Data Source
3. New Connection -> Setting parameters for the new connection -> Test Connection button gives a message: "Test conenction succeeded."
4. Gathering tables and views from databases works fine. I can see all tables in a TreeView.
5. Then I check a table (or create a new SqlQuery for a custom table in a report)
6. Finish -> I am getting an error there. "Object reference not set to an instace of an object".
This is not happening in all databases. I guess there is something wrong with the data in that database, or with the tables, relations, I dont know.
I did all this from Demo.exe.
This is the message details, it does not meen anything to me, but maybe somebody can figure it out what is happening.
System.NullReferenceException: Object reference not set to an instance of an object.
  at xSTuBf0AZmwFAf5RO7G.i55ryA05hDI89djEsPi.elbJNqcMw()
  at xSTuBf0AZmwFAf5RO7G.i55ryA05hDI89djEsPi.uu7kppCAN(Object , FormClosedEventArgs )
  at System.Windows.Forms.Form.OnFormClosed(FormClosedEventArgs e)
  at System.Windows.Forms.Form.CheckCloseDialog(Boolean closingOnly)
Please, help me with this, I need it to work with that database.
Thanks in advance, Bosko Kukanjac
Comments