UnicodeString templateSavePath = ChangeFileExt(ExtractFilePath(Application->ExeName),"tmp.doc");
 IdAntiFreeze1->OnlyWhenIdle = false;//设置使程序有反应.
 TMemoryStream *templateStream ;
 templateStream = new TMemoryStream() ;

 try {
  IdHTTP1->Get("http://localhost/shaj.synadmin/tmp.doc", templateStream);
 } catch (...) {

 }


 templateStream->SaveToFile(templateSavePath);
 delete templateStream;

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2021-11-28
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2021-07-20
相关资源
相似解决方案