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, ...
Suggested Answer

How to set fixed widths file format

(0) ShareShare
ReportReport
Posted on by 230
Hi Team.
 
Using below link i have generated the .txt file.
 
Currently i am getting data like below.
////
 
Expected Data;-
Each column have fixed width and data should come based on fixed width.
Like below
////
 
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    238,863 Most Valuable Professional on at
    I see it's a continuation of your other questions about TextStreamIo.
     
    Simply add extra spaces to values before writing them to TextStreamIo. For example:
    strLFix('sdfsdf,', 13)
  • Martin Dráb Profile Picture
    238,863 Most Valuable Professional on at
    Note that F&O comes with a data management framework, which supports export to both delimited and fixed-width text files.
     
    I also successfully used FixedWidthParserWriter when dealing with fixed-width text files in Azure Functions.
  • CU21091228-0 Profile Picture
    230 on at
    for sting value will use 
    strLFix
    Please let me know for integer value and real value what should i use?
  • Suggested answer
    Martin Dráb Profile Picture
    238,863 Most Valuable Professional on at
    There is nothing like a number with spaces. It must be a string.
     
    You already know how to deal with strings, therefore the solution is obvious: convert numbers to strings and use strLFix() (or strRFix()).
  • Martin Dráb Profile Picture
    238,863 Most Valuable Professional on at
    Has your question been answered? If so, please verify the answer. If not, please tell us what else you need for us before it can be considered answered.

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... 527 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 473

#3
Adis Profile Picture

Adis 284 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans