Thursday, August 10, 2023

HTML formatting in SSRS report using X++

  purchPurchaseOrderTmpLoc.Name   = inventTable.itemName();
        if (externalItemFreeTxt)
        {
            purchPurchaseOrderTmpLoc.Name   = strFmt('%1 <br />', purchPurchaseOrderTmpLoc.Name);
            purchPurchaseOrderTmpLoc.Name += strFmt('<i> %1: %2 </i>', "@SYS342305", externalItemFreeTxt);
        }
        if (barcode)
        {
            purchPurchaseOrderTmpLoc.Name   = strFmt('%1 <br />', purchPurchaseOrderTmpLoc.Name);
            purchPurchaseOrderTmpLoc.Name += strFmt('<i> %1: %2 </i>', "@SYS331679", barcode);
        }
Then in ssrs report designer enable html markup in the text box

No comments:

Post a Comment

Table browser URL in D365FO

Critical Thinking icon icon by Icons8