K
KenLee
Unregistered / Unconfirmed
GUEST, unregistred user!
以下代码保存其他OLE字段均正常,是否图形文件需要特殊的保存方法?
FresourceTpp1.savedialog1.defaultExt:=
ppTypeFileExtensions[ord(ppx.pptype)];
FresourceTpp1.savedialog1.filter:=
ppTypeOpenSaveDialogOptions[ord(ppx.pptype)];
if FresourceTpp1.savedialog1.execute then
begin
try
ole1.SaveAsDocument(FresourceTpp1.savedialog1.filename);
except
showInfo1('载入文件资料出现错误。');
try
ole1.CreateObject(ppTypeOleClassNames[ord(ppx.pptype)],false);
except
errMessage;
end;
end;
end;
FresourceTpp1.savedialog1.defaultExt:=
ppTypeFileExtensions[ord(ppx.pptype)];
FresourceTpp1.savedialog1.filter:=
ppTypeOpenSaveDialogOptions[ord(ppx.pptype)];
if FresourceTpp1.savedialog1.execute then
begin
try
ole1.SaveAsDocument(FresourceTpp1.savedialog1.filename);
except
showInfo1('载入文件资料出现错误。');
try
ole1.CreateObject(ppTypeOleClassNames[ord(ppx.pptype)],false);
except
errMessage;
end;
end;
end;