ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Black Vertical Bar Meters's problem
Posted by Cici on Feb-09-2016 23:31
Hi Peter,

I tried to add Black Vertical Bar Meters to my VB.NET program. there are several errors,
for example: on "m.addBar" shows 'addBar' is not a member of
'ChartDirector.LinearMeter'"

What did I miss?

Thanks,

Cici

  Re: Black Vertical Bar Meters's problem
Posted by Peter Kwan on Feb-10-2016 01:08
Hi Cici,

LinearMeter.addBar is an API introduced in ChartDirector 6. Are you using ChartDirector 6
or an earlier version of ChartDirector? You can use the diagnostic script
"ChartDirector/VBNetASP/cdinfo.aspx" to determine which version of ChartDirector you are
using. Please kindly let me know of the result.

Regards
Peter Kwan

  Re: Black Vertical Bar Meters's problem
Posted by Cici on Feb-10-2016 02:01
Hi Peter,

Thanks for your reply!

I do find the file that you mentioned, how can I identify which version?

Cici

  Re: Black Vertical Bar Meters's problem
Posted by Peter Kwan on Feb-10-2016 03:09
Hi Cici,

I was assuming that you are using ChartDirector in an ASP.NET application, in which you
can view the cdinfo.aspx file just like other ASPX files in ASP.NET. After reading your last
message, I guess you are using VB.NET in a Windows Forms application. In this case, you
can use the following methods to determine the ChartDirector version:

(1)

' The first digit in the message box is the major version,
' which should be 6 for ChartDirector 6
MessageBox.Show(Hex(Chart.getVersion()))


(2) Your project should have included the DLL "netchartdir.dll" or "netchartdir_cp.dll". You
may right click on it using the File Explorer, select Properties, and in the Details tab you
can find the version number.

Hope this can help.

Regards
Peter Kwan

  Re: Black Vertical Bar Meters's problem
Posted by Cici on Feb-10-2016 03:21
Hi Peter,

I am using VB.NET windows from to design my program.

After I tried the first solution you have provided, the message box shows "5010001".

If I want to use black vertical bar meter in my program, what should I do?

Thanks,

Cici

  Re: Black Vertical Bar Meters's problem
Posted by Cici on Feb-13-2016 05:14
I found the solution, I need to add netchartdir_cp.dll again.

Thanks,

Cici