Printing via NAS using Printer selection table

b52
Member Posts: 22
Yo! 
I'm using the "REPORT.RUN(Number [, ReqWindow] [, SystemPrinter] [, Record])" with false,false but since the NAS dont know the real user it doesnt work. What can be done?
/K

I'm using the "REPORT.RUN(Number [, ReqWindow] [, SystemPrinter] [, Record])" with false,false but since the NAS dont know the real user it doesnt work. What can be done?
/K
0
Answers
-
NAS knows the real user, it is the user account under which the service is running... ;-)0
-
Very funny Kamil!
After next icehockey game, I'll be the one laughing ...
To be a bit clearer, I'm looking for a "REPORT.RUN(Number, False, MyOwnPrinter, Record)" where MyOwnPrinter is a variable sett by me.
/K0 -
I still do not undersand your problem. If you use that, NAS will look into Printer Selection table and will select the correct printer if set there for the combination of User and Report. To be able to select correct printer you need to set it for the reort and for the User under which the NAS is running.0
-
Ok!
Our NAS is logged on as an Admin. Then, I have one user (PDA) in Bratislava, one in Brno and one in Tokyo and they surely [-X dont want their prints on the same printer. NAS 8) beleive they are all Admin.
:idea: A very ugly way is to let each user have their own reportnumber which then can be directed with "REPORT.RUN(Number [, ReqWindow] [, SystemPrinter] [, Record])". How ugly would you rate that one :?:
/K0 -
You can use singleinstance codeunit and modification of the FindPrinter function in CU1 to take the UserID not from the system variable but from the singleinstance codeunit (just for the NAS), which will be set to value you have got from the PDA (to transfer the "PDA_UserID" between your codeunit and the CU1).0
-
Thanx!
Thats sounds like something! Do you know where one can read :shock: more about that?
/K0 -
E.g. on Mibuso... ;-) I recommend the HowTo's sections for articles about communication between objects...0
-
Yes it works!
Thanks again Kamil and I'm sorry about the game last night!
/K0 -
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