发布于 2014-03-21 08:17:56
1楼
pExcel->Workbooks ->open ("C:\\Book1.xls",,1);
原型:
expression.Open(FileName, UpdateLinks, ReadOnly, Format, Password, WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter, Editable, Notify, Converter, AddToMRU)
其中第三个参数为:
ReadOnly Variant 类型,可选。如果为 True 则以只读模式打开工作簿。
无论成与败,无论甜与苦,我还是我。