Home > Back-end >  OLEContainer basic usage
OLEContainer basic usage

Time:09-20

For an example: put a local TXT documents in which the open

CodePudding user response:

If it is should be displayed in the Delphi form TXT can use memo, open a TXT, then to circulation of TXT text, add to the memo,
Memo1. Lines. The add ();
If directly on the external Open a TXT file, can use the shellexecute (Handle, the 'Open', PChar (application name), PChar (path), nil, SW_SHOWNORMAL);

CodePudding user response:

Delphi install directory Demos, ActiveX, with examples in OleCtnrs,

CodePudding user response:

refer to the original poster baidu_36063547 response:
to an example: put a local TXT documents in which the open

Using the control key is I now in practice, it doesn't make sense

CodePudding user response:

Quote: refer to 1st floor juno_393 response:

If it is should be displayed in the Delphi form TXT can use memo, open a TXT, then to circulation of TXT text, add to the memo,
Memo1. Lines. The add ();
If directly on the external Open a TXT file, can use the shellexecute (Handle, the 'Open', PChar (application name), PChar (path), nil, SW_SHOWNORMAL);
The
Quote:

Using the control key is I now in practice, such meaningless

CodePudding user response:

OleContainer1. CreateObject (' software (word/excel/TXT), False);
OleContainer1. DoVerb (ovShow);
  • Related