v1.1.4-patch2
This commit is contained in:
parent
47e9ff9a46
commit
919c80f1b0
|
|
@ -1,5 +1,3 @@
|
||||||
// Version 1.1.4
|
|
||||||
|
|
||||||
Function TOfficeObj(n);
|
Function TOfficeObj(n);
|
||||||
Begin
|
Begin
|
||||||
case lowercase(n) of
|
case lowercase(n) of
|
||||||
|
|
@ -12359,8 +12357,10 @@ Type TDocumentBody = Class(DocObject)
|
||||||
///[docx]: 可选参数,TSDocxFile对象,在TTextBox、TCell中调用需要传入文档对象
|
///[docx]: 可选参数,TSDocxFile对象,在TTextBox、TCell中调用需要传入文档对象
|
||||||
Function AddPicture(picture, posOpt, docx);
|
Function AddPicture(picture, posOpt, docx);
|
||||||
Begin
|
Begin
|
||||||
if ifObj(docx) then
|
if ifObj(docx) then Begin
|
||||||
zipfile_ := docx.Zip();
|
zipfile_ := docx.Zip();
|
||||||
|
picture.Run.Drawing.WInline.ID := docx.GetDocPrId();
|
||||||
|
End;
|
||||||
if not ifBinary(picture.Image) or length(picture.Image)=0 then
|
if not ifBinary(picture.Image) or length(picture.Image)=0 then
|
||||||
raise 'Invalid Image Data.';
|
raise 'Invalid Image Data.';
|
||||||
if not ifObj(zipfile_) then
|
if not ifObj(zipfile_) then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue