Rory,

Thanks, that beautifully summarizes my own conclusions, though coming from
assorted other directions.  It ought not to be so hard.  There's gotta be a
betta way as Donnie Deutsch likes to say.  

And so maybe there is something out there that hasn't had its day in the
sun.  Does anybody know of such a new star?

-Rich

 
Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Rory Daulton
Sent: Thursday, August 20, 2009 2:48 PM
To: Delphi-Talk Discussion List
Subject: Re: Loading text versions of files

Rich,

> Yet with every file type, if I run the program, I can select text and 
> Ctl/C
> a copy of the text, then paste it into my TMemo.  There has to be a better
> way to move it, at least.  The TMemo has a windows level paste that does
> that part of the job.  But that is the part I want to automate as much as
> possible.

When, for example, you run Adobe Acrobat Reader, select some text, and press

Ctrl+C, a "copy" message is sent to Acrobat Reader.  Reader converts that 
section of text to text format, then places it into the Windows Clipboard 
(perhaps with other formats).  When you paste it into TMemo, the TMemo takes

the data that is already in text format and copies it in.

IOW, the proprietary program takes the data in its proprietary format, does 
its conversion, and *then* gives it out to the world.  You could easily 
automate the pasting, but the copying to the clipboard is another matter. 
If you can't do a direction conversion from the proprietary format to text, 
you could simulate a select then a press of Ctrll+C; components exist to 
emulate keystrokes.

IFilter sounds like a good idea; I also thought of that.  But I have not 
seen the specification, and my own recent attempt to find IFilters for my 
old data files does not give much hope for dealing with many formats.

Rory Daulton
[email protected] 

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

Reply via email to