Multiple print

Djb-BkDjb-Bk Member Posts: 9

I want to print a document severy times, for sample two times.

Can I specify the number of times i want to print in the REPORT.RUN or have I to do an 'boucle' to do this. For sample, for 2 prints, to run 2 times the REPORT.RUN.

Thanks a lot for your help.



  • Options
    HalMdyHalMdy Member Posts: 429
    You have to work with an internal "loop" in your report.

    As an example, see report 206 Sales Invoice

    You see a "CopyLoop" implemented in ... that's the trick ! \:D/
  • Options
    kinekine Member Posts: 12,562
    it depend on the report. Some report take no. of copies. In this case you can create some function to be able set this variable outside the report and you run the report through some report variable (variable of type report)...

    or something similar... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    lagersjeflagersjef Member Posts: 57
    that's a possible solution, but you will have to run through a report for every copy you want to print and that's not good for performance. Is there anyway you can tap into the Windows API and set the number of printed copies you want?
  • Options
    jonsan21jonsan21 Member Posts: 118

    Make sure you go to the properties of the printer before you print and set the copies to whatever number you want to print :)

    lagersjef, nice idea. Would like to know as well if possible.



Sign In or Register to comment.