Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

How to set color to text using openxml

Posted on by 15

How to set color to text or label using document.openxml

  • Kranti Nipane Profile Picture
    Kranti Nipane 15 on at
    RE: How to set color to text using openxml

    I am using "Microsoft.Dynamics.Nav.OpenXml" assembly to generate Excel file and using 

    "Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.CellDecorator" type to  write value in excel file  now , I am unable to set color to cell text.
    How to set color to cell text using  that assembly .
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,698 Super User 2024 Season 2 on at
    RE: How to set color to text using openxml

    Hi, sorry I'm not sure if this is possible in NAV, you can try adding the controls below first.

    DocumentFormat.OpenXml.dll

    https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.drawing.diagrams.stylelabel?view=openxml-2.8.1

    https://learn.microsoft.com/en-za/dotnet/api/documentformat.openxml.drawing.diagrams.colortransformstylelabel?view=openxml-2.8.1

    How to: Install a Windows Client Control Add-in Assembly

    https://learn.microsoft.com/en-us/dynamics-nav/how-to--install-a-windows-client-control-add-in-assembly

    Hope this can give you some hints.

    Thanks,

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: How to set color to text using openxml

    I think you have to elaborate a little more around what you are trying to achieve in orde for us to be able to provide you any good help.

    Do you have a page you use for opening an xml document or do you want to display a color coded xml document?

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