Can't use any database other that Northwind?
I'm having issues with Jasper. I'm just testing it out using VB Express Orcas.
I've had lots of success using the Northwind Database but as soon as I try to use any other database I have issues. Either nothing will show up in any of the controls or I will get some sort of "schema not valid" error.
This is my app.config
<?
xmlversion="1.0"encoding="utf-8" ?><
configuration><
connectionStrings><
addname="testdb"connectionString="Provider='System.Data.SqlClient';Provider Connection String='Data Source=.\SQLExpress;Initial Catalog=testdb;Integrated Security=True;';Generate Default EDM=True;"providerName="System.Data.EntityClient"/></
connectionStrings></
configuration>Then I used the following code in the code behind the form:
Imports
Microsoft.JasperPublic
Class Form1Dim connectionStringAsStringDim contextAs DynamicContextDim binderAs AutoBinderPrivateSub Form1_Load(ByVal senderAs System.Object,ByVal eAsSystem.EventArgs)HandlesMyBase.LoadconnectionString = Configuration.ConfigurationManager.ConnectionStrings(
"testdb").ConnectionStringcontext = DynamicContext.CreateDynamicContext(connectionString)
binder =
New AutoBinder(context,Me)EndSubEnd
ClassI placed a DataGridView on the form and called it "stuff" to correspond with the table "stuff" in testdb and got nothing. I even tried the bindingSource and bindingNavigator with text boxes. The result is a recordset with no records even though there are three records in the table.
Is there something that I am missing?
Cheers,
Jason Lepack
PS: Watch for the wrapping on the code snippets...

