batch printing using different trays

PhilippePhilippe Member Posts: 27
edited 2005-03-23 in Navision Attain
Hi,

I would like to print approx. 400 invoices, each consisting of 2 pages, using different trays. In the prop. of the report I can define the tray (no 1) for the first page, and the second tray (no 2) for the second page.

Since Navision considers the print batch as 1 doc., only the first page of the first invoice is taken from the first tray, all the other invoices are printed from the 2nd tray.

How can I solve this ?

Regards,

Comments

  • AKAK Member Posts: 226
    Don't call the report directly. Instead call a scheduling report, passing the filters as you would pass them to the printing report. The scheduling report then has to find and pass the records one by one to the printing report, so that the printing report will be called once for each invoice.
  • Torben_R.Torben_R. Member Posts: 99
    Hi Philippe

    If you want page 1, 2 ... from tray one and only the last page from tray two you can solve it as follows:

    Create a variable
    LastPage Boolean

    OnPreReport
    CurrReport.PAPERSOURCE := 1;

    DataItem Sales Invoice Header
    OnAfterGetRecord
    LastPage := FALSE;

    DataItem CopyLoop
    OnAfterGetRecord
    CurrReport.PAPERSOURCE := 1;

    DataItem PageLoop
    OnPostDataItem
    IF LastPage THEN
    CurrReport.PAPERSOURCE := 2;

    DataItem Total
    OnPostDataItem
    LastPage := TRUE;

    The tray numbers are
    1 Upper or Only One Feed
    2 Lower Feed
    3 Middle Feed
    4 Manual Feed
    5 Envelope Feed
    6 Envelope Manual Feed
    7 Automatic Feed
    8 Tractor Feed
    9 Small-format Feed
    10 Large-format Feed
    11 Large-capacity Feed
    14 Cassette Feed
    15 Automatically Select
    256 Printer Specific Feed 1
    257 Printer Specific Feed 2
    258 Printer Specific Feed 3
    259 Printer Specific Feed 4
    260 Printer Specific Feed 5
    261 Printer Specific Feed 6
    262 Printer Specific Feed 7
    263 Printer Specific Feed 8

    Regards
    Torben
  • 2tje2tje Member Posts: 80
    This method doesn't seem to work at our customers place.
    When printing from e.g. Word, the tray can be selected in the printer window.
    When printing from Word or any other application, the tray can be selected in the printer - property's window. This works.
    Presetting these property's doesn't work from Navision with the function PAPERSOURCE.
    We are using a HP 2430 PCL 6

    Anyone any idea?
  • 2tje2tje Member Posts: 80
    Was wondering why my previous post did not appear in the recent list of issues. Perhaps the computer's date was not correct.
    Anyone any idea concerning the tray problem?
  • ajhvdbajhvdb Member Posts: 672
    I found trays in Navision only work if you are printing to the default printer...
  • 2tje2tje Member Posts: 80
    It is the default printer.
    But also the printer selection is filled in. Maybe I should remove this and test it again.
Sign In or Register to comment.