Axapta 2009 X ++从网站下载文本文件

时间:2011-11-24 06:32:38

标签: axapta dynamics-ax-2009 x++

我想从网站下载一个文本文件,因为我知道它的URL。

1 个答案:

答案 0 :(得分:4)

Axaptapedia.com, loading Web Documents中有几个例子。这些示例使用Microsoft .NET Framework。以下代码来自Axaptapedia:

public static void TEST_DownloadString (Args _args)
{
    System.Net.WebClient webClient = new System.Net.WebClient();
    ;
    info(webClient.DownloadString('http://axaptapedia.com'));
}