62
Views
4
Comments
Solved
Copy to Application Directory, what directory is it?
Question

Hi There,

I have a font and then do Copy to Application Directory.

I try to address using "FontProgram fontProgram = FontProgramFactory.CreateFont(@"/ScoringSingleStoreMemo/Calibri Regular.ttf");"

where ScoringSingleStoreMemo is the application (also the extension has same name with its app) where this extension resides.


Unfortunately, this error raised:

My question is what is the right directory?

I read this documentation, but it is incomplete:

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/Extend_Logic_with_Your_Own_Code/Managing_Extensions/Define_Resources

regards and thanks


2025-01-09 14-56-57
IQ78
Solution

https://www.outsystems.com/forums/discussion/80825/resources-copy-to-images-directory-not-working/

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Indra,

The documentation is indeed lacking a bit there. Note you can give feedback by clicking the feedback icon:

That said, the application directory is indeed the root directory for the IIS application ("image directory" is img, "binary directory" is "bin2"). I think your problem is that you add "/ScoringSingleStoreMemo/" in front of it, while I think you shouldn't. Just specifying "Calibri Regular.ttf" should suffice, I think (at least for images it works).

2025-01-09 14-56-57
IQ78

thanks sir, i try later.

Reading this link:

https://success.outsystems.com/Documentation/11/Reference/Integration_Studio/Integration_Studio_Editors/Resource_Editor

It is said:

and i read it is the module that use this extension?

regards

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Yes, extensions are themselves not deployed, but they're always deployed together with the consuming module.

2025-01-09 14-56-57
IQ78
Solution

https://www.outsystems.com/forums/discussion/80825/resources-copy-to-images-directory-not-working/

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.