Trouble using Fastreport with vb.net and Mysql
Hi
First of all thank you for a great product - So far...
After testing the demo version and the standalone reportgenerator i'm very pleased with what looks like a great product.
But im having trouble with incorporating my test report in a prpoer vb.net project,
and i cant' find any relevant documentation on the correct setup.
What I have found and done so far:
> Downloaded the dataconnections addin
> Compiled the FastReport.MySQL.dll
Result: I can generate standalone reports with FastreportReportgenerator directly connected to my MYSQL server.
Moving on to Visual studio...
> Created a new windows form project
> Added FastReport.MySQL.dll to project references
> Imported Fastreport namespace in project
> Added reference to namespace in head of form1.vb: 'Imports fastreport'
> Added reference to namespace in head of form1.vb: 'Imports Mysql'
> Added code to 'initialize' FastReport.MySQL.dll in project
'FastReport.Utils.RegisteredObjects.AddConnection(typeof(MySqlDataConnection));'
The only information found on this forum is this c# code, so i tried an autotranslator to get the c# code translated to vb.net code:
'FastReport.Utils.RegisteredObjects.AddConnection(GetType(MySqlDataConnection))'
This throws an error stating that 'MysqlDataConnection' is not defined
Any clues on what im missing here?
Regards
First of all thank you for a great product - So far...
After testing the demo version and the standalone reportgenerator i'm very pleased with what looks like a great product.
But im having trouble with incorporating my test report in a prpoer vb.net project,
and i cant' find any relevant documentation on the correct setup.
What I have found and done so far:
> Downloaded the dataconnections addin
> Compiled the FastReport.MySQL.dll
Result: I can generate standalone reports with FastreportReportgenerator directly connected to my MYSQL server.
Moving on to Visual studio...
> Created a new windows form project
> Added FastReport.MySQL.dll to project references
> Imported Fastreport namespace in project
> Added reference to namespace in head of form1.vb: 'Imports fastreport'
> Added reference to namespace in head of form1.vb: 'Imports Mysql'
> Added code to 'initialize' FastReport.MySQL.dll in project
'FastReport.Utils.RegisteredObjects.AddConnection(typeof(MySqlDataConnection));'
The only information found on this forum is this c# code, so i tried an autotranslator to get the c# code translated to vb.net code:
'FastReport.Utils.RegisteredObjects.AddConnection(GetType(MySqlDataConnection))'
This throws an error stating that 'MysqlDataConnection' is not defined
Any clues on what im missing here?
Regards
Comments
> 'Utils' is not a member of FastReports
> Type 'Fastreport.report' is not defined
> Reference required to assembly 'FastReport, Version=2013.1.11.0, Culture=neutral, PublicKeyToken=db7e5ce63278458c' containing the base class 'FastReport.Data.DataConnectionBase'. Add one to your project.
Here is my simple basic code:
So my question is this: How do I get Fastreport installed Correctly?
The process setting this up is all to cumbersome and seems fragile.
I just cant get it into production [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Can anyone from Fastreport comment on this and maybe suggest an solution?[/img]
The reason the code didnt work on my production system was of course the lacking
FastReport, Fastreports.Bars and FastReport.Editor references was lacking in my project.
I couldn't find these in the available .net or anywhere to choose manually,
so when posting my previos post i supposed that the installation of the demo application went wrong in some sort.
I missed the obvious; it seems that only when you draw a report component from the VS toolbox onto a Form,
all the missing references automaticly got assigned to the project and my code worked.
So now i'm off for some serious testing.
My tests so far managed to get a complex report with a lot of logic, with relational data from 5 tables resulting in approx 200 report pages with graphics and text generated in 3-6 secs. [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Will definitively buy Fastreporst.Net - it seems to be a gem of a reportgenerator[/img][img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> regards Regards[/img]