Image (JPG, PNG, GIF, ICO) Web Resources

Capabilities of Image
Web resources

With image Web resources
you can add images where you need them. Common uses include the following:

  • Custom entity icons
  • Icons for custom Ribbon
    controls and SiteMap subareas
  • Decorative graphics for
    entity forms and Web page Web resources.
  • Background images that
    are used by CSS Web resources

Limitations of Image Web Resources

Like all Web resources,
image Web resources use the Microsoft Dynamics CRM security context. Only licensed
Microsoft Dynamics CRM users who have the necessary privileges can access them.

Only the three specified
types of image files (*.jpg, *.png, *.gif) are supported.

Image Web Resource Tasks

Image Web resources can
be used where ever you have a requirement to reference an image file.

Reference an Image Web Resource from a Web Page Web Resource

All Web resources can use relative URLs to reference each other.
In the following example, for the Web page Web resource
new_/content/contentpage.htm to reference the image Web resource
new_/Images/image1.png, add the following HTML code to


src=”../Images/image1.png” />


Reference an Image Web Resource from a Microsoft CRM Form

To add an image to an entity form

  1. Navigate to the Form
    Editor for an entity.
  2. Select where you want to
    add the image in the form.
  3. On the Insert tab,
    click Web Resource.
  4. In the Add Web
    dialog box, in the General tab, select the Web resource
    image that you want to add.
  5. Specify a name for the
    Web resource. You can also specify a label and alternative text.
  6. On the Formatting
    tab, you can define:
  • The number of columns
    the images should use.
  • The number of rows the
    images should use, or if it should automatically expand to use available space.
  • The size of the image
    using the following options:

    • Stretch
      to fit
    • Stretch
      to fit (maintain aspect ratio)
    • Original
    • Specific
    • If you select specific
      you can enter the desired height and width in pixels.
  1. Click OK to close
    the Add Web Resource dialog box.
  2. You must save your
    changes and publish the form before users will be able to see the image in the

Reference an Image Web Resource from a Ribbon element or from
the Site Map SubArea

Use the $webresource: directive to specify a Web resource image to
use as an icon in the ribbon or in the application navigation using Site Map.
The following sample shows how to specify icons for a button in the






(FromĀ  SDK)

This entry was posted in MS Dynamic CRM 2011. Bookmark the permalink.

6 Responses to Image (JPG, PNG, GIF, ICO) Web Resources

  1. I can not thank you sufficiently for the articles on your site. I know you set a lot of time and energy into them and hope you know how deeply I enjoy it. I hope I will do something identical for someone else one of these days.

  2. I couldn’t have really asked for a much better blog. You happen to be always there to present excellent information, going instantly to the point for simple understanding of your website visitors. You’re really a terrific specialist in this matter. Thanks a lot for currently being there for people like me.

  3. What would we all do without the presence of the marvellous thoughts you talk about on this website? Who comes with the persistence to deal with crucial topics in the interest of common visitors like me? My partner and i and my friends are very delighted to have your website among the ones we regularly visit. Hopefully you know how significantly we get pleasure from your effort! Best wishes through us all.

  4. Just about all I can express is, I don’t know what to really say! Except obviously, for the great tips which have been shared within this blog. I will think of a million fun ways to read the articles on this site. I’m sure I will ultimately take action utilizing your tips on areas I could not have been able to address alone. You’re so clever to allow me to be one of those to learn from your helpful information. Please recognize how great I appreciate it.

  5. We truly appreciate your site post. You can find dozens of means we could put it to proper use while using little or no effort in time and money. Thank you very much with regard to helping make this post reply many problems we have got before now.

  6. Most I can state is, I’m not sure what to express! Except naturally, for the wonderful tips that happen to be shared using this blog. I will think of a thousand fun methods to read the content articles on this site. I do believe I will ultimately take a step employing your tips on that matter I could not have been able to deal with alone. You were so innovative to let me be one of those to benefit from your valuable information. Please know how significantly I appreciate it.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>