I have search through the forum and read topic related to
PAPERSOURCE property. However, I am struggling to make it work.
I have found tray ids using PrinterTrays software, and I can direct my report to any tray I want, the issue is - that all pages are printed to one tray I am using on CopyLoop - OnAfterGetRecord:
IF PageNumber = 1 THEN CurrReport.PAPERSOURCE = 258
ELSE CurrReport.PAPERSOURCE = 263;
It seems that it always selects what I have on ELSE sentece - it always prints to the last tray (if I change 263 with 258, it will print all report to another tray). I am running out of ideas of how to make it work.
My report's dataitems are:
- Integer CopyLoop (how many times to print)
- Customer Customer (details to print)
Is there anything else besides PAPERSOURCE property that needs to be set up? As right now, it looks like report is firstly generated, and then flushed to one tray (instead of using two).
Thanks for any ideas or suggestions!
Comments
http://ssdynamics.co.in
ssingla,
It can be defined on properties of the report (when you need to print only first page to different tray). I however need to print first batch of copies to one tray, and second batch of copies to second tray. Therefore, property on the report is not so helpful.
I have seen in the past that it is possible to print to different trays without defining property on the report directly, but through code. However, it seems now I am missing something.
Dynamics NAV Enthusiast
Check this with setting the property PaperSourceFirstPage and PaperSourceOtherPages.
And test also if you use the correct number.
Did you resolve this, as you know we had it working fine on an older versions, but it is not working here on 5.10 with a new server.
There was a service pack back a few versions ago that fixed the PaperSourceFirstPage and PaperSourceOtherPages, as it was ignoring the settings, so it could be a problem with 5.10
David
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Hi Rashed,
That is not the problem, it is directing a copy not a page, one Customer uses 3 trays:
First Copy: Page 1 to Tray 2 (Headed Paper), other pages to Default Tray (Plain Paper)
Other Copies for file onto Blue Paper in Tray 3.
So you need to use code in the loops like CurrReport.PAPERSOURCE(261);
It can be done and has worked before as it was working fine on the older versions, but seems to have stopped in version 5.10
It could be a problem with a Navision/Windows Dll, Printer Driver, operating system etc:
Regards
David
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
Update 0.2 26751 953545 Selecting printer tray doesn't work
although the KB doesn't talk about this.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Looks to be a service pack issue, I will post back if this resolves the Issue, for future reference.
David
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
Wondering if this was resolved? I'm having a similar PAPERSOURCE issue.
cheers,
You have to place the CurrReport.PAPERSOURCE on a trigger that is linked to a dataitem.
Don't place it on OnPreReport on OnInitReport, if you place it there it won't work.
...
Everybody on-line.
...
Looking good!