11/07/2016

Axapta : Create สูตร ใน Office Calc

Axapta : Create สูตร ใน Office Calc

Code ที่ใช้เขียนสูตรลงในช่อง
  1. ORange.SetFormula("=String Value");


Example :
  1.        //### Add Formula To Office Calc.
  2.         oRange = oSheet.getCellByPosition(18, i);
  3.         ORange.SetFormula(StrFmt("=+M%1*O%1", i+1));
  4.  
  5.         oRange = oSheet.getCellByPosition(19, i);
  6.         ORange.SetFormula(StrFmt("=+M%1", i+2));
  7.  
  8.         oRange = oSheet.getCellByPosition(20, i);
  9.         ORange.SetFormula(StrFmt("=+S%1-T%1", i+1));
  10.  
  11.         oRange = oSheet.getCellByPosition(21, i);
  12.         ORange.SetFormula(StrFmt("=+U%1/S%1", i+1));

No comments:

Post a Comment