Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2002.08.15;
Скачать: [xml.tar.bz2];

Вниз

Документ Word, как открыть?   Найти похожие ветки 

 
Lega   (2002-07-30 10:49) [0]

Как открыть документ, зная пароль?


 
Song   (2002-07-30 11:01) [1]

Если по тупому то:
ShellExecute() --> Sleep() --> Keybd_event() или SendMessage()
А по умному, может ключик у ворда есть какой?


 
Proton   (2002-07-31 20:50) [2]

>Song © (30.07.02 11:01)
>Если по тупому то:
>ShellExecute() --> Sleep() --> Keybd_event() или SendMessage()
createprocess --> waitforinputidle --> .....

а слип может не прокатить


 
TTCustomDelphiMaster   (2002-07-31 21:35) [3]

Lega © (30.07.02 10:49)
Opens the specified document and adds it to the Documents collection. Returns a Document object.

expression.Open(FileName, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Format, Encoding, Visible, OpenConflictDocument, OpenAndRepair , DocumentDirection, NoEncodingDialog)

expression Required. An expression that returns a Documents object.

FileName Required Variant. The name of the document (paths are accepted).

ConfirmConversions Optional Variant. True to display the Convert File dialog box if the file isn"t in Microsoft Word format.

ReadOnly Optional Variant. True to open the document as read-only. Note This argument doesn"t override the read-only recommended setting on a saved document. For example, if a document has been saved with read-only recommended turned on, setting the ReadOnly argument to False will not cause the file to be opened as read/write.

AddToRecentFiles Optional Variant. True to add the file name to the list of recently used files at the bottom of the File menu.

PasswordDocument Optional Variant. The password for opening the document.

PasswordTemplate Optional Variant. The password for opening the template.

Revert Optional Variant. Controls what happens if FileName is the name of an open document. True to discard any unsaved changes to the open document and reopen the file. False to activate the open document.

WritePasswordDocument Optional Variant. The password for saving changes to the document.

WritePasswordTemplate Optional Variant. The password for saving changes to the template.

Format Optional Variant. The file converter to be used to open the document. Can be one of the following WdOpenFormat constants.

WdOpenFormat can be one of these WdOpenFormat constants.
wdOpenFormatAllWord
wdOpenFormatAuto The default value.
wdOpenFormatDocument
wdOpenFormatEncodedText
wdOpenFormatRTF
wdOpenFormatTemplate
wdOpenFormatText
wdOpenFormatUnicodeText
wdOpenFormatWebPages

To specify an external file format, apply the OpenFormat property to a FileConverter object to determine the value to use with this argument.

Encoding Optional Variant. The document encoding (code page or character set) to be used by Microsoft Word when you view the saved document. Can be any valid MsoEncoding constant. For the list of valid MsoEncoding constants, see the Object Browser in the Visual Basic Editor. The default value is the system code page.

Visible Optional Variant. True if the document is opened in a visible window. The default value is True.

OpenConflictDocument Optional Variant. Specifies whether to open the conflict file for a document with an offline conflict.

OpenAndRepair Optional Variant. True to repair the document to prevent document corruption.

DocumentDirection Optional WdDocumentDirection. Indicates the horizontal flow of text in a document.

WdDocumentDirection can be one of these WdDocumentDirection constants.
wdLeftToRight default
wdRightToLeft

NoEncodingDialog Optional Variant. True to skip displaying the Encoding dialog box that Word displays if the text encoding cannot be recognized. The default value is False.




Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2002.08.15;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.006 c
1-48189
[ch!p]
2002-08-02 14:08
2002.08.15
Просмотр Word документов из проги


4-48367
com6
2002-04-30 13:01
2002.08.15
как отследить названия запускаемых программ


1-48038
BAY
2002-08-03 14:37
2002.08.15
А из Новосибрска есть кто?


14-48274
mvg_first
2002-07-19 17:19
2002.08.15
Кто как использует UML в своей работе? Опять же опрос :)


8-48211
kerberos
2002-04-10 09:34
2002.08.15
Работа с векторным *.WMF





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский