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)

Choose Tray automatically

(0) ShareShare
ReportReport
Posted on by 186

Hi guys

Is it not possible to choose the tray via the report printing preview (and save it for the next report) anymore?

I already configured the printer selections, but I am not able to save the paper source within the printing preview (i.e. preview of report 206 Sales - Invoice).

How can I save it? It is not possible to change the "PaperSourceDefaultPage" property because we have two companies where we want to print to different paper sources.

Thanks.

Best regards

Raphael

*This post is locked for comments

I have the same question (0)
  • Raphi Profile Picture
    186 on at
    RE: Choose Tray automatically

    Hi again

    I figured out how this is working.

    I created the procedure GetPaperTrayForReport in the Codeunit 1 ApplicationManagement. Now it works! Thanks :)

    Best regards

    Raphi

  • Raphi Profile Picture
    186 on at
    RE: Choose Tray automatically

    Hello

    I tried now the trigger OnPreReport(), but it still prints to "Automatically Select" instead of Tray 3 (260) or Tray 4 (261)...

    More ideas?

    Thanks.

    BR Raphi

  • Suggested answer
    Suresh Kulla Profile Picture
    49,099 Super User 2025 Season 2 on at
    RE: Choose Tray automatically

    Try on OnPreReport trigger of the report.

  • Raphi Profile Picture
    186 on at
    RE: Choose Tray automatically

    Thanks, I thought about that but I was not able to achieve the goal. It is still on "select automatically", I checked the tray with the "FindTrays.exe" tool I found on the internet.

    Can you tell me, where I have to add the conditions? In OnAfterGetRecord?

    Thanks.

  • Suggested answer
    Suresh Kulla Profile Picture
    49,099 Super User 2025 Season 2 on at
    RE: Choose Tray automatically

    Please check the below link

    http://www.archerpoint.com/blog/Posts/printing-carbon-copies-nav

    You need to add a condition like

    IF COMPANYNAME = 'abc' THEN

    CurrReport.PAPERSOURCE(258)

    IF COMPANYNAME = 'xyz' THEN

    CurrReport.PAPERSOURCE(111)

  • Raphi Profile Picture
    186 on at
    RE: Choose Tray automatically

    Can I set this property to two different values?

    Company 1 needs to print from tray 3

    Company 2 needs to print from tray 2

    How can I achieve this?

    Thanks.

    Best regards

  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,330 Super User 2025 Season 2 on at
    RE: Choose Tray automatically

    Hi Raphael,

    Have a Look on below link, I think it should help -

    msdn.microsoft.com/.../hh166725(v=nav.90).aspx

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans