How to connect to a website from Axapta and Writing a web page information

str pg;
 str NameofFile;
 commaIO yourfile;
 int Object1;
 WinInet wi = new WinInet();
 ;
 NameofFile = "C:\\test1.txt";
 yourfile = new commaIO(NameofFile,"w");
 Object1 = wi.internetOpenUrl('http://daynamicsaxaptatutorials.blogspot.in/');
 if (Object1)
 {
 pg = wi.internetReadFile(Object1);
 yourfile.write(pg);
 }
 wi.internetCloseObject1(Object1);
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.