سؤال

I am developing a custom SharePoint workflow in Visual Studio. I have a custom association form (ASPX) and I'd like to display an image, which is embedded into the project (and subsequently wsp).

I've tried all the standard Visual Studio methods for embedding an image in my SharePoint workflow project, but when trying to set the ImageUrl on asp:Image, the resource picker never shows my resource regardless of how I attempt to embed.

هل كانت مفيدة؟

المحلول 2

Answered my own question, whilst looking to implement the suggestion made by moontear...

Right click on the project > Add > 'SharePoint "Images' Mapped Folder', this creates a 'system' directory within the project where you can import your image resources.

These are then selectable using the resource explorer (which comes up when trying to set a field like ImageUrl).

نصائح أخرى

Why do you want to embed the image as a resource? You normally wouldn't do that in SharePoint.

Add a Module to your Visual Studio project and add the image in there. Afterwards you can just set the ImageUrl to the relative Url where you deploy your module to (e.g. SiteAssets).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top