DevExpress Error

I get an error in Report Designer when I run a report CS0012 The type 'DevExpress.Charts.Native.ISeries' is defined in an assembly that is not referenced.  You must add a reference to assembly 'DevExpress.Charts.v8.1.Core'

I've referenced it in my project... below is the code in the report.
private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) {
	XRChart xrChart = (XRChart)sender;
	Series series1 = xrChart.Series[0];
	DataFilter dataFilter = new DataFilter("MMSI", "Int32", DataFilterCondition.Equal, GetCurrentColumnValue("MMSI"));
	series1.DataFilters.Add(dataFilter);
}

Open in new window

LVL 1
apophis_nfldAsked:
Who is Participating?
 
apophis_nfldConnect With a Mentor Author Commented:
The Report Designer has it's own way of handing references... you need to hard code the DLL.  Very evil, but it works now.
0
 
p_davisCommented:
have you put in a using statement for that assembly?
0
 
apophis_nfldAuthor Commented:
I put it in my references in the solution explorer (visual studio 2008).
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
apophis_nfldAuthor Commented:
I added
using DevExpress.XtraCharts;
to the script and code, but still the same error.
0
 
ssflynnCommented:
Did you reference the correct version of the file?
0
 
apophis_nfldAuthor Commented:
I'm pretty sure... it was asking for 8.1 and that's the version I have added.
0
 
p_davisCommented:
did you just recently upgrade? make a copy of the project's liscenses.licx and then delete it from the solution - then try to build.  if that doesn't work just put the old file back in
0
All Courses

From novice to tech pro — start learning today.