|
Use a background image as the plot area background |
Posted by akim on Aug-03-2009 18:18 |
|
How to Use a background image as the plot area background ?
- code
1. Dim plotarea As plotarea
2. Set plotarea = c.setPlotArea(40, 32, 200, 200)
3. Call plotarea.setBackground2("bg.png")
error in line 2 " type mismatch"
|
Re: Use a background image as the plot area background |
Posted by Peter Kwan on Aug-04-2009 01:17 |
|
Hi akim,
From your coding style, I assume you are using "ChartDirector for ASP/COM/VB Ver 5" with VB6.
I have copied and pasted your code to the "vbHelloWorld" sample code, and it works normally without error. I have attached my test VB6 project for your reference.
In your case, there can be many possible cause for the error. For example, it is not clean in your code what is "c". Is it an XYChart object? Also, is there another class that is also called "plotarea" (name conflict)?
If the above still cannot solve the problem, would you mind to attach a sample project to illustrate the problem? (Just try to modify the sample project I used to try to reproduce the error.)
You may also try to just use:
Dim plotarea
Set plotarea = c.setPlotArea(40, 32, 200, 200)
Call plotarea.setBackground2("bg.png")
Hope this can help.
Regards
Peter Kwan
|
Re: Use a background image as the plot area background |
Posted by akim on Aug-05-2009 10:58 |
|
Thanks you Sir... |
|