Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


how to input during run time?

Posted on 1998-05-15
Medium Priority
Last Modified: 2012-08-13
Hi experts:

I want to input my datasets into ChartFx 2.0 OLE Custom Control and Microsoft Chart Control to draw chart DURING run time. I can not find any help file.

thanks  a  lot
Question by:tubs
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 1450574
It should be in the box that the control came in when you bought it.

Accepted Solution

bin_huwairib earned 300 total points
ID: 1450575

If you are talking about Microsfot Char Control then use Data property to draw chart during run time, see the following code.

Private Sub Command1_Click()
 Dim Column As Integer
 Dim Row As Integer
 With Form1.MSChart1
  .chartType = VtChChartType3dBar
  .ColumnCount = 8
  .RowCount = 8
  For Column = 1 To 8
   For Row = 1 To 8
    .Column = Column
    .Row = Row
    .Data = Row * 10
   Next Row
  Next Column
 End With
End Sub

Best regards
Bin Huwairib


Author Comment

ID: 1450576
Only half questions have been answered. How about ChartFx 2.0 OLE Custom Control? Code please!!!

Expert Comment

ID: 1450577

Here is how to use ChartFX 2.0 OLE Custom Control:

Private Sub Command1_Click()
 Call Chartfx1.OpenDataEx(COD_VALUES, 2, 8)
 Chartfx1.ThisSerie = 0
 Chartfx1.Value(0) = 30
 Chartfx1.Value(1) = 20
 Chartfx1.Value(2) = 40
 Chartfx1.Value(3) = 60
 Chartfx1.Value(4) = 50
 Chartfx1.Value(5) = 15
 Chartfx1.Value(6) = 24
 Chartfx1.Value(7) = 35
 Chartfx1.ThisSerie = 1
 Chartfx1.Value(0) = 45
 Chartfx1.Value(1) = 60
 Chartfx1.Value(2) = 30
 Chartfx1.Value(3) = 60
 Chartfx1.Value(4) = 80
 Chartfx1.Value(5) = 45
 Chartfx1.Value(6) = 15
 Chartfx1.Value(7) = 45
 Call Chartfx1.CloseData(COD_VALUES)
End Sub

Bin Huwairib

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question