Skip to main content

Notifications

Microsoft Dynamics AX (Archived)
Answered

Company address in sentence in SSRS report

Posted on by 110

Hi all,

I need to display my company address in footer in single sentence ,in SSRS report,How can i do like that?

*This post is locked for comments

  • Verified answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: Company address in sentence in SSRS report

    Hi,

    Set the value for the width property(under Position/size) of the textbox(in the footer) equal to your tablix.

    While filling your temporary table, use the following code:

    LogisticsAddressing address; // Declare variable
    address = companyInfo.postalAddress().Address;
    
    // Display single if address format has 4 lines. If it has more lines then add extra strLine function by incrementing the number
    TmpTable.CompanyAddress = strLine(address.Address, 1) + strLine(address.Address, 2) + strLine(address.Address, 3) + strLine(address.Address, 4);
  • Derik Profile Picture
    Derik 110 on at
    RE: Company address in sentence in SSRS report

    Thank you,but it displays in multiple  vertically split format,How can i change it into horizontal single sentence

  • Suggested answer
    István Orosz Profile Picture
    István Orosz 2,137 on at
    RE: Company address in sentence in SSRS report

    Hi,

    You can pass it e.g. in a field in the report tmp table, and display it on the report layout. If it is an already existing one, you can refer to this article.

    Regards,

    István

  • Suggested answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: Company address in sentence in SSRS report

    Hi,

    If you have companyaddress field in your temporary table, then add a footer to the report and add a textbox in the footer. Use this expression for the newly created text box: =First(Fields!CompanyAddress.Value). If you don't have this field, then create a field of type LogisticsAddressing on temporary table and use this code to populate TmpTable.CompanyAddress = companyInfo.postalAddress().Address;

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans