batch printing using different trays

Philippe
Member Posts: 27
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,
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
-
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.0
-
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
Torben0 -
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?0 -
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?0 -
I found trays in Navision only work if you are printing to the default printer...0
-
It is the default printer.
But also the printer selection is filled in. Maybe I should remove this and test it again.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions