Word编程
求助妖哥:
OfficeControl->ActiveDocument.Revisions(1).Author
这么写String sTemp = OfficeControl->ActiveDocument.OleFunction("Revisions",1).OlePropertyGet("Author");不对。要怎么写呢?
OfficeControl->ActiveDocument.View.Reviewers("Jeff Smith").Visible = False又要怎么写呢?
[解决办法]
Revisions是一个属性。所以试试这样:
String sTemp = OfficeControl->ActiveDocument->OlePropertyGet("Revisions", 1).OlePropertyGet("Author");
OfficeControl->ActiveDocument->OlePropertyGet("View")->OlePropertyGet("Reviewers", "Jeff Smith")->OlePropertySet("Visible", false);