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

Message ListMessage List     Post MessagePost Message

  Use a background image as the plot area background
Posted by akim on Aug-03-2009 18:18
Attachments:
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"
error.PNG

  Re: Use a background image as the plot area background
Posted by Peter Kwan on Aug-04-2009 01:17
Attachments:
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
vbHelloWorld.zip
vbHelloWorld.zip

1.51 Kb

  Re: Use a background image as the plot area background
Posted by akim on Aug-05-2009 10:58
Thanks you Sir...