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

Message ListMessage List     Post MessagePost Message

  Images in Multichart
Posted by Jamie on Jun-22-2011 23:54
I am using vba and would like to add two images (jpg) to a mulitchart. When I use the "getdrawArea.loadjpg" command only one of the images shows. How do i get both of the images to show in specified locations?

  Re: Images in Multichart
Posted by Peter Kwan on Jun-23-2011 06:00
Hi Jamie,

The loadjpg method loads the image to the DrawArea object, replacing any existing pixels there.

To add an image to a specified location, you may use BaseChart.addText. For example, in VB/VBScript:

Set t = c.addText(20, 30, "<*img=c:\\mypath\\myimage.jpg*>")

You may use t.setZOrder to control the z-order of the image. See Box.setZOrder.

Hope this can help.

Regards
Peter Kwan

  Re: Images in Multichart
Posted by Jamie on Jun-24-2011 01:19
Thanks...that worked
Peter Kwan wrote:

Hi Jamie,

The loadjpg method loads the image to the DrawArea object, replacing any existing pixels there.

To add an image to a specified location, you may use BaseChart.addText. For example, in VB/VBScript:

Set t = c.addText(20, 30, "<*img=c:\\mypath\\myimage.jpg*>")

You may use t.setZOrder to control the z-order of the image. See Box.setZOrder.

Hope this can help.

Regards
Peter Kwan