O
oly102
Unregistered / Unconfirmed
GUEST, unregistred user!
strFullFileName = strFullFileName + "//Merge.DOC"
AnsiString pageoption="PageOption";//宏名,
bool ReadOnly =False;
bool AddToRecentFiles=False;
try{
V = GetWordObject();
//自定义函数,这个我就不说了,论坛大把~
V.Exec(PropertySet("Visible")<<true);
Variantdo
cs = V.Exec(PropertyGet("Documents"));
do
cs.Exec(Procedure("Open")<<strFullFileName<<ReadOnly<<AddToRecentFiles);
// V.Exec(Procedure("Run")<<pageoption);
//运行宏处理,
do
cs.OlePropertyGet("MailMerge") //????????问题,怎么获得MailMerge属性?
}
catch(...) {
ShowMessage(" 执行WORD程序PageOption宏出错!");
return;
}
我不想用BCB提供的WORDApplication 控件,因为关闭WORD时不能自由的关闭
Docs.OlePropertyGet("MailMerge")这里我试了N种方式,仍然不能获取其属性~
AnsiString pageoption="PageOption";//宏名,
bool ReadOnly =False;
bool AddToRecentFiles=False;
try{
V = GetWordObject();
//自定义函数,这个我就不说了,论坛大把~
V.Exec(PropertySet("Visible")<<true);
Variantdo
cs = V.Exec(PropertyGet("Documents"));
do
cs.Exec(Procedure("Open")<<strFullFileName<<ReadOnly<<AddToRecentFiles);
// V.Exec(Procedure("Run")<<pageoption);
//运行宏处理,
do
cs.OlePropertyGet("MailMerge") //????????问题,怎么获得MailMerge属性?
}
catch(...) {
ShowMessage(" 执行WORD程序PageOption宏出错!");
return;
}
我不想用BCB提供的WORDApplication 控件,因为关闭WORD时不能自由的关闭
Docs.OlePropertyGet("MailMerge")这里我试了N种方式,仍然不能获取其属性~