2 diff. printer trays in the same report

stampestampe Member Posts: 48
edited 2000-11-21 in Navision Financials
Does anyone have a solution to this problem, the last page in a report should be taken from a different tray

Comments

  • PeterDPeterD Member Posts: 66
    For what reason do you want the last page to be printed on a different kind of paper?
  • SNielsenSNielsen Member Posts: 37
    Did i miss something in this thread, or what? Why not use the standard functionality in Navision Financials?

    CurrReport.PAPERSOURCE(PaperBinNo [, PhysicalPage])

    PaperBinNo: tray number
    PhysicalPage: page number

    /Soren
  • anolisanolis Member Posts: 16
    I don't know a way to let this happen automatically, but the following method should work (However, I didn't try it.)

    In the Report's section designer, you add a footer.
    In the footer switch to the C/Al edittor.
    Here you enter the following code in the OnPreSection():


    [variable name].ShowPrinter()

    You must declare [variable name] as an OCX of the type 'Microsoft Common Dialog Control, version 6.0'.

    This will call a PrintDialog. Here you can specify the Tray by hand.

    I hope this works.

    Greetings.


  • anolisanolis Member Posts: 16
    Hmm, you're right. Learn something every day! ...I always thought you could only change the tray for the first page.
    Thanks Soren!

    The following can be found in the c/side reference guide:

    CurrReport.PAPERSOURCE(PaperBinNo [, PhysicalPage])

    If you do not specify a page number, the tray change will apply to the current page. The new tray will also apply to subsequent pages until the next tray change occurs.

    When you do specify a page number, the tray change will take place after the specified page is printed. Subsequent pages will also use this tray until the next tray change. The tray change can be placed anywhere on a page and still apply to the whole page.

    If you specify more than one paper tray selection for a page, the printer uses the last selection.
    <img border="0" title="" alt="" src="images/smiles/icon_smile.gif" /> <img border="0" title="" alt="" src="images/smiles/icon_smile.gif" /> <img border="0" title="" alt="" src="images/smiles/icon_smile.gif" /> <img border="0" title="" alt="" src="images/smiles/icon_smile.gif" />

  • barcombarcom Member Posts: 8
    This stuff is very helpful but what I have on my sytem a Kyocera printer and problem I have , I am not able to choose tray within navision all these numbers do not effect my printer. How can I find the necessary number....Thanks
Sign In or Register to comment.