Print severalcopies of the same document

sliewsliew Member Posts: 31
edited 2002-03-26 in Navision Financials
HI,

I would like to print several copies of a document wihout asking the user to enter the number of copies.

Is there a way to set up the no of copies to be printed while calling the REPORT.RUNMODAL....?

<img border="0" title="" alt="[Confused]" src="images/smiles/icon_confused.gif" />
SL.

Comments

  • skblamskblam Member Posts: 24
    Hi Luc,

    Is there a parameter that I can set before running the Report. Or shall I run the report n times?

    Please advise

    SL.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You need to create a function in the report that accepts a integer. In your report, you use a Integer Dataitem with SETRANGE(Number,1,intYourVar). Look in eg. report 206 how Navision does it for the Invoice report.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • skblamskblam Member Posts: 24
    Hi Luc,

    Unfortunately, I don't have the Report 206 in my Navision Financial. Strange. Does the NF Package comes with this Report?

    SL.
  • SunsetSunset Member Posts: 201
    Yes, it should in the Standard package. alternatively you can see it in 204-208 and 404-408.

    Hopefully you'll have one of these.
    Don't just take my word for it, test it yourself
  • skblamskblam Member Posts: 24
    No I don't have them.

    Shall I request them from where I bought the Package?

    SL.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You can create a function in your report that accepts one parameter, namely the No. of copies. Then you declare a variable pointing to your report. Before you run your report (using the variable), you can execute your function and pass the No. of copies.

    Or you can write to a table the No. of copies, run your report, and at the beginning of your report you read from that table the required No.

    Hope this make sense.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.