Axapta 在Ax 2012中导出csv文件
我正在从Ax 2012导出csv文件 存储路径,例如:“D:\Local\folder”来自Ax 2012中的一个字段 现在我已经创建了一个新文件。例如:Cust.csv,并将我的值从容器写入文件 问题是如何将系统中的文件存储到上面指定的文件夹路径 我使用的是Runbasebatch,在服务器端执行时是否相同 谢谢 Vivek Chirumamilla在过去(AX 2012之前),您可以使用Axapta 在Ax 2012中导出csv文件,axapta,x++,dynamics-ax-2012,ax,Axapta,X++,Dynamics Ax 2012,Ax,我正在从Ax 2012导出csv文件 存储路径,例如:“D:\Local\folder”来自Ax 2012中的一个字段 现在我已经创建了一个新文件。例如:Cust.csv,并将我的值从容器写入文件 问题是如何将系统中的文件存储到上面指定的文件夹路径 我使用的是Runbasebatch,在服务器端执行时是否相同 谢谢 Vivek Chirumamilla在过去(AX 2012之前),您可以使用WinAPI::moveFile()将文件移动到位,但在运行CIL时它不起作用(仅限客户端) .Net来拯
WinAPI::moveFile()
将文件移动到位,但在运行CIL时它不起作用(仅限客户端)
.Net来拯救:
new InteropPermission(InteropKind::ClrInterop).assert(); // get dll interop permission
System.IO.File::Move(fileName, newFileName);
您必须事先从字段构造newFileName
但是为什么不首先在那里创建文件呢?在过去(在AX 2012之前),您可以使用WinAPI::moveFile()
将文件移动到位,但在运行CIL时它不起作用(仅限客户端)
.Net来拯救:
new InteropPermission(InteropKind::ClrInterop).assert(); // get dll interop permission
System.IO.File::Move(fileName, newFileName);
您必须事先从字段构造newFileName
但是为什么不首先在那里创建文件呢