I haven't seen any automating WordPerfect from VFP examples so you will probably have to convert a vb one. Wordperfect 9 comes with vba version 6. You can still use perfectscript too though.
Something like:
loWordPerf = CREATEOBJECT("Wordperfect.PerfectScript")
lowordPerf.AppMaximize
loWordperf.fileopen(mfilepath+mfilename)
loWordPerf.quit
Some vb examples:
http://gmccomb.com/vault/edge/ole.html>I have an application that uses Word MailMerge.
>
>A client has only WP and simply hates Word and will never install it.
>
>Is it worthwhile my investigating WP for compatibility or is it a known no-go from the git-go?
>
>Thanks
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"