Hi I've been trying to get rb2006r2 to launch a Word Doc using the text a user enters in a texbox (editfield). I've been bashing my head against the wall on this. I've even resorted to the LR and can't get it to work. Code snip below (cleaned up for rb built in mistakes) I had to rem out the lines that rb doesn't seem to recognize but still nothing. I don't get an exception just nothing launches. I've even tried: doc.launch (not recognized obviously now). Any other forces i could use? Anyone had the same issues? work around? I thought I might try to launch word first and then 'feed' the file but that has caused problems in the past. Thanks Derek Dim word as WordApplication Dim doc as WordDocument Dim style as WordStyle Dim v as Variant word = New WordApplication doc = word.documents.add doc.range.text = Editfield1.text v = doc.paragraphs.item(1).style // If v.objectvalue IsA wordstyle then style = wordstyle(v.objectvalue) // styletext.text = style.namelocal // stylefontname.text = style.font.name // stylefontsize.text = Str(style.font.size) // end if Exception err as OLEException MsgBox err.message
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ 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>
