web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    RE: Export a single purchase in text or excel in NAV 2017

    Hi

    in which format do you want to export the PO ?

  • anandb313@gmail.com Profile Picture
    200 on at
    RE: Export a single purchase in text or excel in NAV 2017

    In text format..

  • Suggested answer
    Suresh Kulla Profile Picture
    50,233 Super User 2025 Season 2 on at
    RE: Export a single purchase in text or excel in NAV 2017

    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
    RE: Export a single purchase in text or excel in NAV 2017

    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
    RE: Export a single purchase in text or excel in NAV 2017

    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
    RE: Export a single purchase in text or excel in NAV 2017

    "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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans