Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-09

MS Word via LazActiveX

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Roland Turcan

Hello Lazarus mailing list!

This test case proves, that no one event is called when it should.

  WD := TWordDocument.Create(nil);
  WD.OnNew_ := @DoWordDocumentNew;
  WD.OnOpen := @DoWordDocumentOpen;
  WD.OnClose := @DoWordDocumentClose;
  WD.OleServer.Application.Visible := True;
  WD.OleServer.Application.Selection.TypeText('via WordDoc');

I have imported Word 2003 (8.3) over up-to-date LazActiveX from SVN and Lazarus 1.0.10.

I have also tried some events on TWordApplication where some work and some not.

What could it be?

Reply by email

Roland Turcan

Hello Lazarus mailing list!

This test case proves, that no one event is called when it should.

  WD := TWordDocument.Create(nil);
  WD.OnNew_ := @DoWordDocumentNew;
  WD.OnOpen := @DoWordDocumentOpen;
  WD.OnClose := @DoWordDocumentClose;
  WD.OleServer.Application.Visible := True;
  WD.OleServer.Application.Selection.TypeText('via WordDoc');

I have imported Word 2003 (8.3) over up-to-date LazActiveX from SVN and Lazarus 1.0.10.

I have also tried some events on TWordApplication where some work and some not.

What could it be?

I hope someone can help.

Reply by email