SAVEASPDF Problem
Marcos
Member Posts: 55
Hello,
The SAVEASPDF causing me problems in the Navision 2009 r2 three tier environment. The following error message is generated when using the SAVEASPDF command with the appropriate parameters. ](*,)
"The server "net.[url=tcp://mh-samsung:7046/dynamicsnavr2/Service]tcp://mh-samsung:7046/dynamicsnavr2/Service[/url]" is either unavailable or your connection has been lost. Do you want to attempt to reconnect?"
The situation is as following:
http://blogs.msdn.com/b/nav/archive/2009/01/26/how-to-get-a-dynamics-nav-report-with-a-web-service.aspx
I am using the above solution to save reports as PDF and attach them to emails. Everything works well if I test it on my local machine with SQL server installed (local system account) middle tier (buildin network account). But when I change the middle tier service account to local system (situation on-site) or a designated service account which I set to local administrator the rtc client loses connection as seen in the error message. I think it has to do with read or write rights on the folder that stores the TEMP PDF files created by the SAVEASPDF command, the full path of the PDF is as following "C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\users\SUL\*******\TEMP\Remittance Advice Acc 10000.pdf".
Does anyone experienced these problems before and has a solution for me?
Many thanks in advance
Eventvwr:
Service: MicrosoftDynamicsNavServer
User: SUL\***********
Type: System.ArgumentNullException
Message:
Value cannot be null.
Parameter name: initialTarget
The SAVEASPDF causing me problems in the Navision 2009 r2 three tier environment. The following error message is generated when using the SAVEASPDF command with the appropriate parameters. ](*,)
"The server "net.[url=tcp://mh-samsung:7046/dynamicsnavr2/Service]tcp://mh-samsung:7046/dynamicsnavr2/Service[/url]" is either unavailable or your connection has been lost. Do you want to attempt to reconnect?"
The situation is as following:
http://blogs.msdn.com/b/nav/archive/2009/01/26/how-to-get-a-dynamics-nav-report-with-a-web-service.aspx
I am using the above solution to save reports as PDF and attach them to emails. Everything works well if I test it on my local machine with SQL server installed (local system account) middle tier (buildin network account). But when I change the middle tier service account to local system (situation on-site) or a designated service account which I set to local administrator the rtc client loses connection as seen in the error message. I think it has to do with read or write rights on the folder that stores the TEMP PDF files created by the SAVEASPDF command, the full path of the PDF is as following "C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\users\SUL\*******\TEMP\Remittance Advice Acc 10000.pdf".
Does anyone experienced these problems before and has a solution for me?
Many thanks in advance
Eventvwr:
Service: MicrosoftDynamicsNavServer
User: SUL\***********
Type: System.ArgumentNullException
Message:
Value cannot be null.
Parameter name: initialTarget
0
Answers
-
The problem is solved had nothing to do with rights, after a full database compile the error disappeared.0
-
can we filter before we produce as pdf?FileName := 'C:\StockReport.xls';
ReturnValue := StockReport.SAVEASPDF(FileName);
this report is using item ledger entry
but i want to be filtered "posting date" as today0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 333 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