Hi all.
I want to setup the path to save the style sheets in Navision. I've changed the cdu 681 to create the file and the merge in my path.
After this i go to the appropiate form and select my style sheet in the "Send options" button. I open the file, i modified it, but when i close it and save the cahnges, system save it in the default path (C:\Users\user\AppData\Temp) and not in my path.
Anybody can help me ?
Thanks
0
Comments
I realy don‘t know what changes you did in code, but I think that one of the way is -
to create new OS environment variable and to replace parameter in Environ() function.
%Temp% is predefined as C:\DOCUME~1\{username}\LOCALS~1\Temp.(OS XP)
File name is formed in Codeunit 681 Function ConstFileName:
REPEAT
IF I <> 0 THEN
DocNo := FORMAT(I);
FileName := ENVIRON('TEMP') + Text001 + DocNo + '.' + Extension;
IF NOT EXISTS(FileName) THEN
EXIT;
I := I + 1;
UNTIL (I = 999);