use SendKeys.SendWait to send RTF into work

L

Logan McKinley

I have an application that uses SendKeys.SendWait(...) to send RTF
(formatting and all) to a word. I was hoping it would parse the formatting,
therefore retaining the original formatting of the RTF but it treats the
formatting information as standard text and displays it as normal. How do I
tell word that I am sending RTF instead of regular text with SendKeys? Is
it even possible to send RTF to word without cutting and pasting?
Thanks in Advance,
~Logan
 
P

Paul E Collins

Logan McKinley said:
I have an application that uses SendKeys.SendWait(...)
to send RTF (formatting and all) to [Microsoft Word].
[...]
but it treats the formatting information as standard text
and displays it as normal.

As you've discovered, SendKeys sends actual keystrokes and not formatted
data.
Is it even possible to send RTF to word without cutting
and pasting?

Have you considered using the Microsoft Word COM object?
http://support.microsoft.com/?id=311452

P.
 

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