*OfficeAutomation_demo_console: Fixed demo.

git-svn-id: svn://ultimatepp.org/upp/trunk@3655 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2011-07-13 20:51:18 +00:00
parent 5aaf0ff8ea
commit 2c662f82bc

View file

@ -93,7 +93,7 @@ void TestSheetDetail(OfficeSheet &sheet)
sheet.SetValue("B26", GetSysTime()); Puts("Cell(B26) = " + sheet.GetValue("B26").ToString());
sheet.SetValue("D22", "Sum");
sheet.SetValue("E22", "=sum(E14:E20)"); Puts("Cell(E22) = " + sheet.GetValue("E22").ToString());
sheet.SetValue("E23", "=hyperlink(\"http://www.ultimatepp.org\"; \"Ultimate link\")"); Puts("Cell(E23) = " + sheet.GetValue("E23").ToString());
sheet.SetValue("E23", sheet.Function("hyperlink", "\"http://www.ultimatepp.org\"", "\"Ultimate link\"")); Puts("Cell(E23) = " + sheet.GetValue("E23").ToString());
Puts("\nPress enter to check Replace()"); TestGetchar();
sheet.Select(); // Select all active sheet
@ -204,5 +204,5 @@ CONSOLE_APP_MAIN
}
end = true;
TestSheet();
//TestDoc();
TestDoc();
}