Invoking FileConverters

N

Neo

Hello All,

Is there way to invoke FileConverters through code, without using
SaveAs method. I am more intested in converting given Range into
different text formats. I believe FileConverters are installed when
Word application is installed. But is there any hack to calling methods
in FileConverters?

Best Regards,
Neo
 
J

Jonathan West

Neo said:
Hello All,

Is there way to invoke FileConverters through code, without using
SaveAs method. I am more intested in converting given Range into
different text formats. I believe FileConverters are installed when
Word application is installed. But is there any hack to calling methods
in FileConverters?


As far as I am aware, no. There are 3rd party file conversion programs such
as Conversions Plus from Dataviz which will convert between various file
formats without opening Word. They might be scriptable - you would have to
ask the manufacturer.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
N

Neo

but what about existing FileConverter which word uses underneath? Can
we use them? Also, I am more interested in converting Range than whole
document.
 
J

Jean-Guy Marcil

Neo was telling us:
Neo nous racontait que :
but what about existing FileConverter which word uses underneath? Can
we use them? Also, I am more interested in converting Range than whole
document.

I do not understand why you do not want to use Save As. If you want to
create a new file format, you have to create a new file, so Save As is the
way to do it. No?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
N

Neo

Well, my program does searching in word doc using find method
(including formating search). After doing that, I get Range of required
part of document. Now, I want text of this range. This can poses big
problem when I use Range.Text method. It doesn't give many special
chars also, for numbering I have to struggle.

So, I want to give a Range object and get Text of it converted using
FileConverter for text. This text, I am going to insert into Database.
I guess, I have to create intermediate temp file. but if you have any
other input let me.
 
J

Jean-Guy Marcil

Neo was telling us:
Neo nous racontait que :
Well, my program does searching in word doc using find method
(including formating search). After doing that, I get Range of
required part of document. Now, I want text of this range. This can
poses big problem when I use Range.Text method. It doesn't give many
special chars also, for numbering I have to struggle.

What do you mean here?
Special characters... you want them or not? What special characters?
What do you want to do with the numbering? Preserve it? Eliminate it?
So, I want to give a Range object and get Text of it converted using
FileConverter for text. This text, I am going to insert into Database.
I guess, I have to create intermediate temp file. but if you have any
other input let me.

You could try dumping the Range.Text in a string variable, manipulate that
variable before sending that variable to the database.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
C

Cindy M -WordMVP-

<[email protected]>
<[email protected]>
<#[email protected]>
<[email protected]>
Newsgroups: microsoft.public.word.vba.general
NNTP-Posting-Host: 15.161.79.83.cust.bluewin.ch 83.79.161.15
Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!msrtrans!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
Lines: 1
Xref: number1.nntp.dca.giganews.com microsoft.public.word.vba.general:69555

Hi Neo,
Well, my program does searching in word doc using find method
(including formating search). After doing that, I get Range of required
part of document. Now, I want text of this range. This can poses big
problem when I use Range.Text method. It doesn't give many special
chars also, for numbering I have to struggle.

So, I want to give a Range object and get Text of it converted using
FileConverter for text. This text, I am going to insert into Database.
I guess, I have to create intermediate temp file. but if you have any
other input let me.
Copy to the Clipboard, and there extract the HTML, RTF or whatever?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
N

Neo

clipboard poses few more problem, like your application has to run
alone, you have to take of data already in clipboard and put it back. I
tried it but had problems while preserving old data in clipboard if it
is other than text like picture.

Also, i think clipboard is not intended for conversion, it is for
moving data from one place to other. And I now, feel it is only for
manul use by user, not programmatical use.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top