combo box to open word document and print 
Author Message
 combo box to open word document and print

I have a combo box in access containing names of several word documents.
When a document is selected I want Word to open and print the document.  I
have tried  several ways and can't figure it out.
Thanks for any help,
Mike


Mon, 10 Nov 2003 19:44:55 GMT  
 combo box to open word document and print
Hi Michael

The following article hopefully will help you work out how to do the
communication with Word.

Control Word from Excel
http://www.mvps.org/word/FAQs/InterDev/ControlWordFromXL.htm

I realise that it is written in terms of controlling Word from Excel rather
than Access, but the same principles apply and most or all of the code
should work from Access

What you need to do, having made a connection to an instance of Word, is
open each document in turn, using the Documents.Open method. Then use the
PrintOut method to print the document and then the Close method to close the
document. Do this for each selected filename in turn.

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
Word FAQs at http://www.multilinker.com/wordfaq
Please post any follow-up in the newsgroup. I do not reply to Word questions
by email


Quote:
> I have a combo box in access containing names of several word documents.
> When a document is selected I want Word to open and print the document.  I
> have tried  several ways and can't figure it out.
> Thanks for any help,
> Mike



Mon, 10 Nov 2003 21:57:17 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Printing a Word document after selecting an Item from a Combo Box

2. Trouble Opening a Word Document with VB.NET,Open member not found in Documents

3. Opening a document through a combo box

4. Printing rtf document without opening Word ????

5. Opening, printing and closing a word document

6. Printing an rtf-document without opening Word ?

7. Print a word document built from multiple sub documents using the RD tag

8. Word Automation Failure when other word documents are open

9. Help. Reading/displaying/printing Word Documents/RTF documents

10. Created Form in Word - Irregular movement of combo boxes, text boxes on scrolling

11. Print a Word document from VB and then Close Word

12. Printing multiple Word doc files without opening each in word

 

 
Powered by phpBB® Forum Software