S
sunnyfairy
Unregistered / Unconfirmed
GUEST, unregistred user!
如题!
如果WordApplication.Visible := True; 则没有问题!
可是如果为False,则当MoveUp方法中的Count> 10时,机子马上死!!!
代码如下:
un_Var := wdLine;
// WordApplication1.Visible := True;如果这一句不注释掉,由没有问题!否则死机!
cnt_Var := 40;
ex_Var := wdMove;
WordApplication1.Selection.MoveUp(un_Var, cnt_Var, ex_Var);
我如果这么写:
cnt_Var := 10;
WordApplication1.Selection.MoveUp(un_Var, cnt_Var, ex_Var);
//上面一句可以执行,到下面一句同样死机!!!
WordApplication1.Selection.MoveUp(un_Var, cnt_Var, ex_Var);
WordApplication1.Selection.MoveUp(un_Var, cnt_Var, ex_Var);
WordApplication1.Selection.MoveUp(un_Var, cnt_Var, ex_Var);
如果WordApplication.Visible := True; 则没有问题!
可是如果为False,则当MoveUp方法中的Count> 10时,机子马上死!!!
代码如下:
un_Var := wdLine;
// WordApplication1.Visible := True;如果这一句不注释掉,由没有问题!否则死机!
cnt_Var := 40;
ex_Var := wdMove;
WordApplication1.Selection.MoveUp(un_Var, cnt_Var, ex_Var);
我如果这么写:
cnt_Var := 10;
WordApplication1.Selection.MoveUp(un_Var, cnt_Var, ex_Var);
//上面一句可以执行,到下面一句同样死机!!!
WordApplication1.Selection.MoveUp(un_Var, cnt_Var, ex_Var);
WordApplication1.Selection.MoveUp(un_Var, cnt_Var, ex_Var);
WordApplication1.Selection.MoveUp(un_Var, cnt_Var, ex_Var);