|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
I have used an ole container control to open and display word documents. However it does not allow me to print the document in text format and print junk characters . Is there any way to convert a binary format in these files to text format, so that they can be printed properly. Please help.
|
|
#2
|
||||
|
||||
|
Your subject title is unacceptable, you can refer to the sticky thread at the top of this forum for more information on how to post a question.
As for your question, I would check into creating a com object of the document that you opened and try printing through it's controls. Don't know for sure if that will work but it is an idea to start from. [edit]I just tested a little and got the following to work: Code:
Dim tmp As Word.Application
Set tmp = New Word.Application
tmp.Documents.Open "c:\test.doc"
tmp.PrintOut
Last edited by Onslaught : August 14th, 2003 at 08:10 AM. |
|
#3
|
|||
|
|||
|
You can also use OLE.Object property as reference to Document object and use entire power of Word object model.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Vb Programming |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|