Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

width has been deprecated and should not be used

(1) ShareShare
ReportReport
Posted on by 16

void ShowLogo()
    {
        Image logoImage;
        
        try
        {
            if (imageContainer)
            {
                logoImage = new Image();
                logoImage.setData(imageContainer);
                Signature.image(logoImage);
                Signature.widthValue(logoImage.width());
                Signature.heightValue(logoImage.height());

            }
            else
            {
                Signature.image(null);
            }
        }
        catch (Exception::Warning)
        {
            throw error(strFmt(/@SYS19312/, imageFilePathName));
        }
    }

please help me with what should i use instead of deprecated methods mentioned below .

  • BPDeprecatedClassMethod: height has been deprecated and should not be used.
  • BPDeprecatedClassMethod: width has been deprecated and should not be used.
  • Anton Venter Profile Picture
    Anton Venter 19,493 Super User 2025 Season 1 on at
    width has been deprecated and should not be used
    This is a duplicate but you have verified the answer? But there is no answer to the question, it doesn't make sense.
  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    width has been deprecated and should not be used
    Hi,
     
    Seems you have created a duplicate thread. Please avoid duplicate threads.
     
    Thanks,
    Girish S.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans