apophis_nfld
asked on
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.Co re'
I've referenced it in my project... below is the code in the report.
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);
}
have you put in a using statement for that assembly?
ASKER
I put it in my references in the solution explorer (visual studio 2008).
ASKER
I added
using DevExpress.XtraCharts;
to the script and code, but still the same error.
using DevExpress.XtraCharts;
to the script and code, but still the same error.
Did you reference the correct version of the file?
ASKER
I'm pretty sure... it was asking for 8.1 and that's the version I have added.
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
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.