Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Save report at a specific location

Posted on by Microsoft Employee

Hey guys,

I have created a report.

When I have executed it and want to save it, I end up always in somewhere in my repository.

Is it possible to say, that I always start at a specific location, when I can save my report. And if this is not the right location, I can navigate through the repos.

Do you know, how I can achieve this?

Thank you :)

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Save report at a specific location

    Did you tried as recommended by Siddharth.

    Standard NAV will always save in any UNC path.

  • Manikanta_501 Profile Picture
    Manikanta_501 245 on at
    RE: Save report at a specific location

    Hello Malue1991

    you can save your Report as PDF file or any other format. Please consider below syntax to save report as PDF file.

    Syntax :

    YourReport.Saveaspdf('Path\fileName.pdf');

    Example :

    TestRep.SaveAsPdf('D:\ReportData\AL Files\Test.pdf');

    TestRep is a variable of type Report, please consider below line.

    TestRep: Report "Sales Order";

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Save report at a specific location

    Ok and how is it achievable? Do you know an example in the standard, where I can have a look?

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Save report at a specific location

    Yes this is achievable , you can give user setup where the concerned person can define the location and on that location you can save the File.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Save report at a specific location

    Where can I find the code, which saves the report?

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Save report at a specific location

    Please share the code you are using to save the report.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans