Kids, don't try this at home!

Tips & Tricks for C#, ASP.NET and CRM

SSRS Report Show Dynamics CRM Note Attachment

We've had couple of instances where we needed to embed existing image attachments in dynamics crm into sql server reporting services reports. Here are the steps you need to take in order to make it happen. It's pretty straight forward.

  1. Create a new report
  2. Add a new table
  3. Drag an image control onto the table and place it into the column that you want, select 'Database' from the options
  4. Click on the image -> go to the 'Properties' tab -> from the 'Value' dropdownlist select '<Expression...>' and use the following bit of code
    =System.Convert.FromBase64String(Fields!documentbody.Value)
  5. 'documentbody' is the field from the FilteredAnnotation view.

    EXAMPLE



    RESULT


Enjoy!

Comments

Twitter Trackbacks for SSRS Report Show Dynamics CRM Note Attachment - Kids, don't try this at home! [asp.net] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 SSRS Report Show Dynamics CRM Note Attachment - Kids, don't try this at home!         [asp.net]        on Topsy.com

# October 1, 2009 7:05 AM

C. Shepherd said:

Many thanks for that. Simple, concise and it works

# April 15, 2010 6:33 AM

Tom Lambert said:

Would this work as a signature capture device for case resolutions?

We need to be able to get the customer to sign in an application, which then saves the image to an annotation, and the reports drops this image in.

Thanks

# October 10, 2011 12:16 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)