locked
How to add image to the products RRS feed

  • Question

  • Hi,

    What is the proper and easiest approach to extend the product's form in order to add image or photo to the record? Also, is that possible to show the photo in a report?

    Thanks.

     

    Wednesday, May 27, 2009 8:24 AM

Answers

  • Hi,

    We normally use the approach of creating adding an IFrame on the form. That IFrame point to a custom aspx page that shows the current picture if there is any or allows you to upload a new one. This functionality is quite easy to build with ASP.Net.

    Then you probably have to think where do you want to store the pictures. It can be either in a custom database or the filesystem, unfortunatelly Dynamics CRM has no data type for binary. Unless there is a good reason (backups, performance...) we normally go with file system since it is easier. However, we also create a custom file containing the name/url where you can find the associated picture.

    Finally, you can show the picture on the report but the way of including them depends on where you have stored the pictures. In MSDN you have more info about those things http://msdn.microsoft.com/en-us/library/ms156342.aspx

    Hope it helps,
    Marco
    Marco Amoedo - http://marcoamoedo.com
    Wednesday, May 27, 2009 8:36 AM
    Moderator

All replies

  • Hi,
    You will have to add an IFrame inside the Product form and give it as source the path to the picture.
    You can also show the picture in SSRS reports.
    Good Luck!

    Wednesday, May 27, 2009 8:28 AM
  • Thanks, but do you have any reference to guide me achieve it step-by-step (using VS .Net, DB, SSRS, etc.)
    Wednesday, May 27, 2009 8:33 AM
  • Hi,

    We normally use the approach of creating adding an IFrame on the form. That IFrame point to a custom aspx page that shows the current picture if there is any or allows you to upload a new one. This functionality is quite easy to build with ASP.Net.

    Then you probably have to think where do you want to store the pictures. It can be either in a custom database or the filesystem, unfortunatelly Dynamics CRM has no data type for binary. Unless there is a good reason (backups, performance...) we normally go with file system since it is easier. However, we also create a custom file containing the name/url where you can find the associated picture.

    Finally, you can show the picture on the report but the way of including them depends on where you have stored the pictures. In MSDN you have more info about those things http://msdn.microsoft.com/en-us/library/ms156342.aspx

    Hope it helps,
    Marco
    Marco Amoedo - http://marcoamoedo.com
    Wednesday, May 27, 2009 8:36 AM
    Moderator
  • http://mscrm4ever.blogspot.com/2009/02/displaying-image-in-iframe.html


    Tiaan van Niekerk http://crmdelacreme.blogspot.com Skype:tiaan.van.niekerk1
    Wednesday, May 27, 2009 10:05 AM
  • I added the IFrame and embedded the aspx page into it. However, how can I save/restore (view) the image of the product in the form?

    Tuesday, June 2, 2009 11:12 AM
  • Hi,

    We have a solution for uploading images to Account, conacts and products if interestred please drop a mail to sahib.salim003@hotmail.com.

    Thanks,
    Ali Sahib.M.
    Monday, July 20, 2009 7:30 AM