Subscribe Bookmark RSS Feed

Addin an image to the report of Add-In

sebastianhoffme

Community Trekker

Joined:

Mar 27, 2015

Hi JMP-gurus!

While working on my Add-In I am facing the following problem: One of my reports uses a bitmap which I added in the addin-builder as ""Additional File". After installing the add-in everything seems to work.

But after a while I'll get the error:

Error with file: Path is invalid: \all.png.


in the log when running the function.

Sadly I could not figure out when exactly this happens. Any ideas how JMP can "forget" where the image is? Or what would be the right way to add a bitmap as a resource to an add-in?


Regards,

Sebastian

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Sebastian,

I would make the path explicit.  You can store the bitmap in your addin location.  For example suppose the "alias" for your addin is com.mycompany.test_addin.  Then you could simply refer to the file using $ADDIN_HOME:

"$ADDIN_HOME(com.mycompany.test_addin)\all.png";

2 REPLIES
Solution

Sebastian,

I would make the path explicit.  You can store the bitmap in your addin location.  For example suppose the "alias" for your addin is com.mycompany.test_addin.  Then you could simply refer to the file using $ADDIN_HOME:

"$ADDIN_HOME(com.mycompany.test_addin)\all.png";

sebastianhoffme

Community Trekker

Joined:

Mar 27, 2015

Thanks a lot. Currently it works. :-)