| | |
Convert Word document into a RichText Format document
Thread Solved |
Hi,
Try this, I haven't been able to test it:
Try this, I haven't been able to test it:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim Oword As Object Dim Odoc As Object Private Sub Command1_Click() Set Oword = CreateObject("Word.Application") Set Odoc = Oword.documents.open("C:\temp.doc") Odoc.SaveAs FileName:="c:\x.rtf", FileFormat:=wdFormatRTF Oword.quit Me.RichTextBox1.FileName = "C:\x.rtf" End Sub
It is never about the number of languages you know, you either have the logic of programming or you don't ...
Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Hi,
Just replace the wdFormatRTF with number 6 (this code is for VB6, if you are using different IDE please advise).
Just replace the wdFormatRTF with number 6 (this code is for VB6, if you are using different IDE please advise).
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim Oword As Object Dim Odoc As Object Private Sub Command1_Click() Set Oword = CreateObject("Word.Application") Set Odoc = Oword.documents.open("C:\temp.doc") Odoc.SaveAs FileName:="c:\x.rtf", FileFormat:=6 Oword.quit Me.RichTextBox1 = "" Me.RichTextBox1.FileName = "C:\x.rtf" End Sub
It is never about the number of languages you know, you either have the logic of programming or you don't ...
Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
First, it's strongly frowned upon to post to threads that are more than three months old. Even if you have a question regarding an old thread, then you would start a new thread, and post a link to the old thread with your question. This will help to ensure that you get a warm and helpful welcome instead of the inevitable flaming that is sure to follow posting to old threads.
![]() |
Similar Threads
- how can i display the ms word document in asp page? (ASP)
- How we open a ms word document file with php? (PHP)
- News Article: eFax Messenger Plus (Windows Software)
- Searching and Comparing strings from an XML Document (Python)
- writing fromDB to MS word document (VB.NET)
- C++ AddIns 4 MS-Word (C++)
- Word format for saving documents (Windows Software)
- How can we print an MS Word document from Java (Java)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to use dtpicker extracting data from database
- Next Thread: help :)
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





, I tried to look for other options, but I can't find any related (and relevant) info about those options on the "Word.Application" object, maybe you can show me how can I accomplish this. Thanks 
