Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Choose Tray automatically

(0) ShareShare
ReportReport
Posted on by 180

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

  • Raphi Profile Picture
    Raphi 180 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
    Raphi 180 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
    Suresh Kulla 43,749 on at
    RE: Choose Tray automatically

    Try on OnPreReport trigger of the report.

  • Raphi Profile Picture
    Raphi 180 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
    Suresh Kulla 43,749 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
    Raphi 180 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
    Saurav.Dhyani 14,178 Super User 2024 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans