ChartDirector

Does anyone have an example of using the makeChart function? I am trying to write a chart to a file on a local computer using a desktop application, and I am getting the error “There is more than one item with this name and its not clear to which this refers.” The code is

Dim b as boolean
b = c.makeChart("C:\\Temp\\a.jpg")

The chart woks if placed on a window using the following code:

PicWindow.Backdrop=c.makeChartPicture

I figured it out. If I replace “C:\Temp\a.jpg” with a folder item it works

Dim f as folderitem
f = GetFolderItem(“c:\junk\a.png”)
b = c.makeChart(f)

There is no method taking a string, only a folder item.