Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. void __fastcall TForm1::toExcelCell(int Row,int Column, AnsiString data)
  2. {
  3.   try {
  4.     Variant  cur = Sh.OlePropertyGet("Cells", Row,Column);
  5.     cur.OlePropertySet("Value", data.c_str());
  6.   } catch(...) { ; }
  7. }/* toExcelCell() */
  8. //------------------------------------------------------------------------
  9. void __fastcall TForm1::toExcelCell(int Row,int Column, Variant data)
  10. {
  11.   try {
  12.     Variant  cur = Sh.OlePropertyGet("Cells", Row,Column);
  13.     cur.OlePropertySet("Value", data);
  14.   } catch(...) { ; }
  15. }/* toExcelCell() */
  16. //---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement