Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

how to convert Tab-delimited flat text file into excel file

Posted on by 105

Hello All,

please help me out, for one web service I'm receiving tab-delimited text file in response, I'm copying manually the file data to excel for processing. can anyone tell me how to automate this process in nav

*This post is locked for comments

  • RE: how to convert Tab-delimited flat text file into excel file

    Hi Hannes Holst,

    thanks for reply, I was able to import tab delimited flat file into a table in nav and also able to export it to excel sheet, is there any way to automate this i.e can we directly create and write data into excel from this tab delimited flat text file

    thanks  

  • Verified answer
    Hannes Holst Profile Picture
    Hannes Holst 5,767 on at
    RE: how to convert Tab-delimited flat text file into excel file

    Hi,

    You are able to check characters based on the Codepage.

    For instance, I use this often to identify a carriage-return character in a file.

    I just stole the following code from another forum :-)
    You must figure out number in the codepage your TAB has and replace it accordingly.

    CHAR10 := 10;
    CHAR13 := 13;
    POS := STRPOS("Your Field", FORMAT(CHAR10));
    IF POS <> 0 THEN ERROR('Pasting Canceled Carrage Return Exists');
    POS := STRPOS("Your Field", FORMAT(CHAR13));
    IF POS <> 0 THEN ERROR('Pasting Canceled Line Feed Exists');


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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans