Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Axapta 在Ax 2012中导出csv文件_Axapta_X++_Dynamics Ax 2012_Ax - Fatal编程技术网

Axapta 在Ax 2012中导出csv文件

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来拯

我正在从Ax 2012导出csv文件

存储路径,例如:“D:\Local\folder”来自Ax 2012中的一个字段

现在我已经创建了一个新文件。例如:Cust.csv,并将我的值从容器写入文件

问题是如何将系统中的文件存储到上面指定的文件夹路径

我使用的是Runbasebatch,在服务器端执行时是否相同

谢谢

Vivek Chirumamilla

在过去(AX 2012之前),您可以使用
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

但是为什么不首先在那里创建文件呢