Where to put PAPERSOURCE property?

TomasTomas Member Posts: 420
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

  • ssinglassingla Member Posts: 2,973
    Paper source is defined in the properties of the report.
    CA Sandeep Singla
    http://ssdynamics.co.in
  • TomasTomas Member Posts: 420
    ssingla wrote:
    Paper source is defined in the properties of the report.

    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.
  • i4tosti4tost Member Posts: 208
    do you change variable PageNumber value somewhere in the code?
  • garakgarak Member Posts: 3,263
    supports you printer the Tray parameter?
    Check this with setting the property PaperSourceFirstPage and PaperSourceOtherPages.
    And test also if you use the correct number.
    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
    Do you make it right, it works too!
  • David_CoxDavid_Cox Member Posts: 509
    Hi Tomas,
    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
    Analyst Developer with over 17 years Navision, Contract Status - Busy
    Mobile: +44(0)7854 842801
    Email: david.cox@adeptris.com
    Twitter: https://twitter.com/Adeptris
    Website: http://www.adeptris.com
  • ara3nara3n Member Posts: 9,256
    I just want to add that you can set the setting on the computer where the use is running run the report, which opens the request window. Click on File->Page setup. Select the tray you want and click OK. It will then print to that tray.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • David_CoxDavid_Cox Member Posts: 509
    ara3n wrote:
    I just want to add that you can set the setting on the computer where the use is running run the report, which opens the request window. Click on File->Page setup. Select the tray you want and click OK. It will then print to that tray.

    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 :)
    Analyst Developer with over 17 years Navision, Contract Status - Busy
    Mobile: +44(0)7854 842801
    Email: david.cox@adeptris.com
    Twitter: https://twitter.com/Adeptris
    Website: http://www.adeptris.com
  • ajhvdbajhvdb Member Posts: 672
    Is it the default printer? Found out that papersource only works correct with that one.
  • ara3nara3n Member Posts: 9,256
    I looked at http://www.waldo.be/ and it looks like there is a hotfix for 5.0 sp1 for

    Update 0.2 26751 953545 Selecting printer tray doesn't work

    although the KB doesn't talk about this.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • David_CoxDavid_Cox Member Posts: 509
    Cheers Rashed,
    Looks to be a service pack issue, I will post back if this resolves the Issue, for future reference.

    David
    Analyst Developer with over 17 years Navision, Contract Status - Busy
    Mobile: +44(0)7854 842801
    Email: david.cox@adeptris.com
    Twitter: https://twitter.com/Adeptris
    Website: http://www.adeptris.com
  • CobaltSSCobaltSS Member Posts: 137
    Hi,

    Wondering if this was resolved? I'm having a similar PAPERSOURCE issue.

    cheers,
  • GoMaDGoMaD Member Posts: 313
    After a struggle of one hour i finally cracked it.

    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.
    Now, let's see what we can see.
    ...
    Everybody on-line.
    ...
    Looking good!
Sign In or Register to comment.