Skip to main content

Notifications

Announcements

No record found.

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

How to define the number of copies to be printed automatically registering a Sales Shipment.

Posted on by 10

Dear Sirs,

I need to increase the number of copies of Sales shipment report printed automatically registering a warehouse shipment.

I try to find the solution around forums and web but did not find any relevant way to do it.

Basically I need that behavior below:

If an user print a posted sales shipment it must print just on copie at time.

if I'm registering a shipment It must print 2 copies of sales shipment report.

Where I can declare the number of copies that function must use while registering?

Thanks for your help,

Leandro

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,696 Super User 2024 Season 2 on at
    RE: How to define the number of copies to be printed automatically registering a Sales Shipment.

    Hi, Nitin is correct, you can modify the standard code below to do it. But please note that this requires customization. You need a development license.

    pastedimage1679960404592v1.png

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to define the number of copies to be printed automatically registering a Sales Shipment.

    If you run your report through a code, you need to check the Report ID - 208 and have to below function before run the report, see the NoofCopies paramter in that

    procedure InitializeRequest(NewNoOfCopies: Integer; NewShowInternalInfo: Boolean; NewLogInteraction: Boolean; NewShowCorrectionLines: Boolean; NewShowLotSN: Boolean; DisplayAsmInfo: Boolean)

       begin

           NoOfCopies := NewNoOfCopies;

           ShowInternalInfo := NewShowInternalInfo;

           LogInteraction := NewLogInteraction;

           ShowCorrectionLines := NewShowCorrectionLines;

           ShowLotSN := NewShowLotSN;

           DisplayAssemblyInformation := DisplayAsmInfo;

       end;

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: How to define the number of copies to be printed automatically registering a Sales Shipment.

    hi

    In Dynamics NAV, you can set the number of copies of a report to print for each document type in the "Document Sending Profile" setup. Here's how to do it:

    Go to "Sales & Receivables Setup" and select "Document Sending Profiles".

    Select the document type for which you want to set the number of copies (in your case, "Warehouse Shipment").

    Click on "Report Selection" and select the Sales Shipment report.

    In the "Copies to Print" field, enter the number of copies you want to print.

    Save the changes.

    This should now automatically print the number of copies you specified when registering a warehouse shipment. Note that this setup applies to all users, so it will affect the number of copies printed for all users. If you need to set a different number of copies for specific users or scenarios, you may need to customize the report or create a custom function to handle this.

    DAniele

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans