![]() |
Модераторы: MetalFan |
![]() ![]() ![]() |
|
Pakshin A. S. |
|
||||||||||
Эксперт ![]() ![]() ![]() ![]() Профиль Группа: Участник Клуба Сообщений: 5056 Регистрация: 16.2.2003 Репутация: 2 Всего: 61 |
Open a new Application and place:
a button named Button3, a RitchText object named WordEditor and an OpenDialog component. From now on, you can browse for any *.doc file and load it into the RitchText object. NOTE: Format:=6 instructs Word to save the file as RTF. Extension is not enough. Other File Formats: Argument Format File Format 0 Normal (Word format) 1 Document Template 2 Text Only (extended characters saved in ANSI character set) 3 Text+Breaks (plain text with line breaks; extended characters saved in ANSI character set) 4 Text Only (PC-8) (extended characters saved in IBM PC character set) 5 Text+Breaks (PC-8) (text with line breaks; extended characters saved in IBM PC character set) 6 Rich-text format (RTF)
How to prevent word from opening password-protected files or resume wizard files and sometimes causing application to hang ? The sollution is to add the folowing query before openning the document:
You can even preset the password propery as:
NOTE: If the above code generates an "Undefined property: ActiveDocument" change the:
with
|
||||||||||
|
|||||||||||
![]() ![]() ![]() |
Правила форума "Delphi: ActiveX/СОМ/CORBA" | |
|
Запрещено: 1. Публиковать ссылки на вскрытые компоненты 2. Обсуждать взлом компонентов и делиться вскрытыми компонентами
Если Вам помогли, и атмосфера форума Вам понравилась, то заходите к нам чаще! С уважением, Rrader, Girder. |
1 Пользователей читают эту тему (1 Гостей и 0 Скрытых Пользователей) | |
0 Пользователей: | |
« Предыдущая тема | Delphi: ActiveX/СОМ/CORBA | Следующая тема » |
|
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности Powered by Invision Power Board(R) 1.3 © 2003 IPS, Inc. |