Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Set QR Code to profile Image

Posted on by 175

Hi ,

i need to know  if there is a way (library ) to set image to contact profil via plugin  . the version of crm is 365

Thank you in adavnce

*This post is locked for comments

  • CrmMouss Profile Picture
    CrmMouss 175 on at
    RE: Set QR Code to profile Image

    Hi Prashant

    for information i tried using ILMRGE , it works fine by the  QRCode Library  .

    Best Regards

  • CrmMouss Profile Picture
    CrmMouss 175 on at
    RE: Set QR Code to profile Image

    I chose not to take an extrenal Library to avoid the problems of  ILmerge , i used the possibility offered by the chrome url

  • CrmMouss Profile Picture
    CrmMouss 175 on at
    RE: Set QR Code to profile Image

    Hi ,

    i used the url : chart.googleapis.com/chart string" to build QR code , then use  System.Drawing.Bitmap  to extract image .

    you can choose your image type like  :  

    System.Drawing.Bitmap bmp = new Bitmap(responseStream);

    bmp.Save(ms, ImageFormat.Png);

    in the end save your entity  with this data

    regards

  • CrmMouss Profile Picture
    CrmMouss 175 on at
    RE: Set QR Code to profile Image

    Hi Prashant ,  

    i just used chrome url  to convert string  to QR Code, the plugin is fired on post operation create

  • Prashant_ Profile Picture
    Prashant_ 1,040 on at
    RE: Set QR Code to profile Image

    Its good to hear your issue resolved. Which library your are using for QR Code generation? I believe you must be using .Net library because to use third party library in plugin you have ILmerge tool for merging dlls then use them in plugins.

  • Fred Codjia Profile Picture
    Fred Codjia 10 on at
    RE: Set QR Code to profile Image

    it's ok i wrote a code plugin to do that , the idea is to convert a reference number to Qr Code and set it in entityimage field

    CRMMOUSS

  • Fred Codjia Profile Picture
    Fred Codjia 10 on at
    RE: Set QR Code to profile Image

    Thank you Prashant  for this information  , but my object is

    convert  string value like reference  number  to QR code , the idea is to set this QR code to image field in the custom entity

  • Suggested answer
    Prashant_ Profile Picture
    Prashant_ 1,040 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans