FastReport 1.7.10 & .NET Framework 2.0
John Rosset
New Hampshire, US
I am currently evaluating FastReports.NET and ran into the error shown below when I attempted to build the project using the 2.0 version of the .NET Framework under Visual Studio 2010. Is there a completely 2.0 version of the FastReports demo program available for download?
> project build warning and and related error:
Warning 1 The primary reference "FastReport, Version=1.7.10.0, Culture=neutral, PublicKeyToken=db7e5ce63278458c, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Windows.Forms.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "FastReport, Version=1.7.10.0, Culture=neutral, PublicKeyToken=db7e5ce63278458c, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Windows.Forms.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". VendMgmt
Error 3 The type or namespace name 'FastReport' could not be found (are you missing a using directive or an assembly reference?) C:\Users\..\ReportSetup.Designer.cs
***** Update on above error @ August 29, 2011 3:23 PM EST
By adding a project reference to the 3.5 version the System.Windows.Forms.DataVisualization.dll file and enabling "Copy Local" for the reference, I was able to keep the project at the 2.0 version of the .NET Framework. I haven't tested this extensively, but I was able to successfully build and run the application in a Citrix environment which only has the 2.0 Framework installed (a copy of the DataVisualization.dll file was placed into the same folder as the application). If you know of any potential problems with this approach, please let me know!
> project build warning and and related error:
Warning 1 The primary reference "FastReport, Version=1.7.10.0, Culture=neutral, PublicKeyToken=db7e5ce63278458c, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Windows.Forms.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "FastReport, Version=1.7.10.0, Culture=neutral, PublicKeyToken=db7e5ce63278458c, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Windows.Forms.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". VendMgmt
Error 3 The type or namespace name 'FastReport' could not be found (are you missing a using directive or an assembly reference?) C:\Users\..\ReportSetup.Designer.cs
***** Update on above error @ August 29, 2011 3:23 PM EST
By adding a project reference to the 3.5 version the System.Windows.Forms.DataVisualization.dll file and enabling "Copy Local" for the reference, I was able to keep the project at the 2.0 version of the .NET Framework. I haven't tested this extensively, but I was able to successfully build and run the application in a Citrix environment which only has the 2.0 Framework installed (a copy of the DataVisualization.dll file was placed into the same folder as the application). If you know of any potential problems with this approach, please let me know!
Comments
FastReport uses MS Chart Control to print charts. This control requires .Net Framework 3.5 sp1. If your report does not contain charts you may just copy this dll in your .exe folder and use 2.0 framework.