How to use Word'centimeterstopoints?(50分)

  • 主题发起人 主题发起人 sjkisslob
  • 开始时间 开始时间
S

sjkisslob

Unregistered / Unconfirmed
GUEST, unregistred user!
This is how i invoke word and use centimeterstopoints.
I want to change the page size of word document.
function ...
var
MyWord:variant;
begin
MyWord.create...
MyWord.documents.add(...
//--<when I use the statement:
MyWord.activedocument.pagesetup.RightMargin := MyWord.CentimetersToPoints(3.17);
//>--error pop out : unknown error.
MyWord.activedocument.close
Myword.quit;
end;

Is here anybody can tell me why I could not use the centimeterstopoints(3.17)?
and how to use it correctly?
Many Thanks.
 

Similar threads

A
回复
0
查看
992
Andreas Hausladen
A
A
回复
0
查看
973
Andreas Hausladen
A
A
回复
0
查看
848
Andreas Hausladen
A
A
回复
0
查看
777
Andreas Hausladen
A
I
回复
0
查看
3K
import
I
后退
顶部