N
notnoname
Unregistered / Unconfirmed
GUEST, unregistred user!
请看看我的代码的问题。
var
WordApplication:OLEVariant;
begin
WordApplication := CreateOleObject('Word.Application');
WordApplication.Visible:=True;
WordApplication.WordApplication_Quit():=Form1.OnWordClose;//就是这
end;
说实话我更本不知道该怎么办?word的帮助上的例子是:
Public WithEvents appWord as Word.Application
Private Sub appWord_Quit()
CommandBars("Standard").Visible = True
CommandBars("Formatting").Visible = True
End Sub
不明白!
var
WordApplication:OLEVariant;
begin
WordApplication := CreateOleObject('Word.Application');
WordApplication.Visible:=True;
WordApplication.WordApplication_Quit():=Form1.OnWordClose;//就是这
end;
说实话我更本不知道该怎么办?word的帮助上的例子是:
Public WithEvents appWord as Word.Application
Private Sub appWord_Quit()
CommandBars("Standard").Visible = True
CommandBars("Formatting").Visible = True
End Sub
不明白!