I'm about to join the ranks of frustrated Word Automation users :-(
I am trying to achieve something rather simple: Create a new Word
document and copy Text in chunks of paragraphs. With a wordDoc opened
from RB I do a
wordDoc.Range.Text = myParagraph + EndofLine
Now I need to move the cursor to the next line after my inserted text
so that I can insert the next paragraph after that. -- That is
where I am stuck!!
I am trying to map this VBA Macro into RB:
"Selection.GoTo What:=wdGoToLine, which:=wdGoToLast"
My problem is, how to set up the OLEParameter to handle the two GoTo
parameters. The RS Find-Replace example does not apply since there
is only 1 parameter for position 11, and the OLR example for
OLEParamaters deals with numbers and does not apply here either.
But then, there may be a more elegant way of moving the text
paragraph by paragraph. The reason for copying text by paragraphs is
because i need to apply various styles to the paragraphs once they
are in the document.
Can somebody please show me the way????
Any guidance is greatly appreciated.
--
Cheers,
Peter
TI PowerBook G4, 1GHz, 1GB RAM, OSX 10.3.9, RB2006r2 Pro
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>