Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Formatting CSV Headers through X++

Posted on by Microsoft Employee

I created a program wherein I can export CSV file. It works fine.

But do you guys know how I would be able to include headers in bold style in the CSV file? I know that it can be done in Excel through styles and fonts but I am wondering if this can be done in CSV file too? If you have any ideas, please share them with me. Thank you!

*This post is locked for comments

  • Suggested answer
    udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Formatting CSV Headers through X++

    Hi,

    As you are creating CSV file so you cannot make any modification to word by assigning it height or making it bold. In csv, it will just add the text format only which separated each cell value as separating by comma ( , ) so it will also not maintain any merging option of cell like we do in excel file. You can just do it by adding empty string before your heading content so it will just move to particular position in csv file.

    Even, If u try making the header bold in excel and save it as CSV, you would understand the case better. Don't waste your time on it.

    /Uday.

  • Verified answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Formatting CSV Headers through X++

    Hi Mikhail Santini!

    You can't do it with CSV because of it's a plaintext format.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Formatting CSV Headers through X++

    CSV is always plaintext format and there is no style information in it.

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans