Help with ResourceCreate

 

Hello all!

I am trying to add an image to the chart using ResourceCreate, but for some reason I am getting error 5002: "Wrong file name".

ResourceCreate("ChartImage","\\Images\\image.png")

I have also tried this code, with the same error:

ResourceCreate("ChartImage","\\Files\\image.png")

I've also tried .gif and .bmp files, so I am at a complete loss. Can anyone help me figure out what the problem is?

Thanks in advance.

 

Hi

I think the problem is :

The first version of the function is used for uploading images and sounds from files, and the second version is used only for the dynamic creation of images. "

So you must use the sencond version of the function