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 :
Microsoft Dynamics NAV (Archived)

Export a single purchase in text or excel in NAV 2017

(0) ShareShare
ReportReport
Posted on by 200

Hi,

       How to export a single purchase order data in NAV? Is there any development logic to be built in NAV?

Thanks in Advance..

*This post is locked for comments

I have the same question (0)
  • Mohsin Abbas Profile Picture
    525 on at

    Hi

    in which format do you want to export the PO ?

  • anandb313@gmail.com Profile Picture
    200 on at

    In text format..

  • Suggested answer
    Suresh Kulla Profile Picture
    50,269 Super User 2026 Season 1 on at

    You can open a purchase order and Export to Excel and then save that file as .csv. Or you need to build an xmlport

  • Suggested answer
    Mohsin Abbas Profile Picture
    525 on at

    In that case you can build an XMLport. On the request page of XMLPort you can apply filter on whichever PO No. you want to export.

  • anandb313@gmail.com Profile Picture
    200 on at

    I have tried following code it works for word. but I need it for text. If I put .txt instead of .doc, notepad is corrupted..Its like decoded. I used this in purchase order actions...

           PurchaseHdr.RESET;

           PurchaseHdr.SETRANGE("No.",Rec."No.");

           Save12 := Rec."No.";

           REPORT.SAVEASWORD(REPORT::ReportName,('C:\'+FORMAT(Save12)+'.doc'),PurchaseHdr);

           MESSAGE('Document Created');

  • Suggested answer
    Mohsin Abbas Profile Picture
    525 on at

    "SaveAsWord" the function name says it all.  If you dont want to do it with XMLPort, then exporting the report as .csv is the best option and it does not require any modification.

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans