Hi eveyone,
I have a question about using ENVIRON on report NAV 2009. I have a report it has below line on postdataitem
AttachmentName := ENVIRON('TEMP') + '\' + SSSS+ ' ' + "Pricelist Header"."No." + '_' +
Customer."Search Name" + '.xls';
When I run the report I get an error. I go to report design after that i compile the report. It gives an error on the error list
Error No. Object Type Object ID Object Name Error Type Function/Trigger Line No. Description
1 Report 63012 Pricelist Warning PageLoopOnPostDataItem 13 Function 'ENVIRON' is obsolete for Microsoft Dynamics NAV Server.
Do you have any ide about that?
Thank you
0
Answers
Your code will work on the classic client, but not on the role tailored client.
The warning popup can be extremely anoying.
http://dynamicsuser.net/blogs/mark_brum ... -list.aspx
When I run the report ,i get an error. it say "Excel not found". I think it is related to ENVIRON Function because ENVIRON Function does not supported in the RoleTailored client. Am I wrong?
I think ,I should use something instead of ENVIRON Function.
Thank you
viewtopic.php?f=32&t=36277&hilit=windows+host+script+set
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Use TEMPORARYPATH instead of ENVIRON('TEMP')
thank you