web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

width has been deprecated and should not be used

(1) ShareShare
ReportReport
Posted on by 108

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.
I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,833 Moderator on at
    Hi,
     
    Seems you have created a duplicate thread. Please avoid duplicate threads.
     
    Thanks,
    Girish S.
  • Anton Venter Profile Picture
    20,635 Super User 2026 Season 1 on at
    This is a duplicate but you have verified the answer? But there is no answer to the question, it doesn't make sense.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 517 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 440

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans