Axapta 2009 X++ download text file from a website

主宰稳场 提交于 2019-12-10 20:08:53

问题


I would like to download a text file from a website, given I know the URL of it.


回答1:


There are a few examples in Axaptapedia.com, loading Web Documents. The examples use the Microsoft .NET Framework. The code below is from Axaptapedia:

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


来源:https://stackoverflow.com/questions/8253012/axapta-2009-x-download-text-file-from-a-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!