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,
0
Comments
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
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?
Anyone any idea concerning the tray problem?
But also the printer selection is filled in. Maybe I should remove this and test it again.