powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Microsoft Access [игнор отключен] [закрыт для гостей] / Печать документа из аккесса
4 сообщений из 4, страница 1 из 1
Печать документа из аккесса
    #32858388
Фотография Vw
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
подскажите как распечатать документ ворда???

Код: plaintext
1.
2.
3.
4.
5.
Public Function print()
Dim WordApp As Object
  Dim Range
    Set WordApp = CreateObject("Word.Application")
  WordApp.Application.Documents.Open ("c:\1.doc") '
   WordApp.Application.Documents.Print ....
end function

ничего не получается
...
Рейтинг: 0 / 0
Печать документа из аккесса
    #32858437
Попробуй так:

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
Dim WordApp As Word.Application
Dim DocWord As Word.Document
    
Set WordApp = New Word.Application
WordApp.Visible = True
Set DocWord = WordApp.Documents.Open("c:\1.doc")
'DocWord.Activate
WordApp.ActiveDocument.PrintOut

Парметры PrintOut

PrintOut ( [Background], [Append], [Range], [OutputFileName], [From], [To], [Item], [Copies], [Pages], [PageType], [PrintToFile], [Collate], [ActivePrinterMacGX], [ManualDuplexPrint], [PrintZoomColumn], [PrintZoomRow], [PrintZoomPaperWidth], [PrintZoomPaperHeight] )
...
Рейтинг: 0 / 0
Печать документа из аккесса
    #32858442
Или так:

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
Dim WordApp As Word.Application
Dim DocWord As Word.Document
    
Set WordApp = New Word.Application
WordApp.Visible = True
Set DocWord = WordApp.Documents.Open("c:\1.doc")
DocWord.PrintOut
...
Рейтинг: 0 / 0
Печать документа из аккесса
    #32858450
Фотография Vw
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Супер! спасибочки!
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / Microsoft Access [игнор отключен] [закрыт для гостей] / Печать документа из аккесса
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]