Preset number of copies from outside a report.

FragenFrager
Member Posts: 69
Hello,
One of our customers uses a terminal solution, i.e. special reports are printed when documents are processed on a terminal.
The reports can be printed interactively from BC as well as via the terminal. When printing via terminal, the reports are called from a codeunit. When printing via terminal, the reports should be printed twice.
Preferably I would implement the number of prints via CopyLoop.
Since the request page should remain closed when printing via terminal, I would have to specify the number of copies from outside. The following problem arises: If I declare the report as a variable in order to call the function to determine the number of copies on this variable, I cannot suppress the output on the standard printer.
If I work with REPORT.RUNMODAL(... I don't have the option of executing a function on the report beforehand, a somewhat tricky situation.
Does anyone here have an idea of how to proceed?
One of our customers uses a terminal solution, i.e. special reports are printed when documents are processed on a terminal.
The reports can be printed interactively from BC as well as via the terminal. When printing via terminal, the reports are called from a codeunit. When printing via terminal, the reports should be printed twice.
Preferably I would implement the number of prints via CopyLoop.
Since the request page should remain closed when printing via terminal, I would have to specify the number of copies from outside. The following problem arises: If I declare the report as a variable in order to call the function to determine the number of copies on this variable, I cannot suppress the output on the standard printer.
If I work with REPORT.RUNMODAL(... I don't have the option of executing a function on the report beforehand, a somewhat tricky situation.
Does anyone here have an idea of how to proceed?
0
Answers
-
You can create a singleinstance codeunit to set the No of copies, and with the running report you can retrive the quantity from the single instance codeunitFor help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.0
-
Thank you for your reply. Yes, I also took a singleinstance codeunit into consideration, but meanwhile I agreed with my teamleader to declare the report as variable an create a function within this report to set the number of copies.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