Hi Derek,

I would assume that you'd simply need to do

word.Visible = True

to have the instance of word show itself.

let me know if it helps.

Stephane Richard
----- Original Message ----- From: "D Prowse" <[EMAIL PROTECTED]>
To: "Getting Started" <gettingstarted@lists.realsoftware.com>
Sent: Friday, June 02, 2006 2:00 PM
Subject: Creating Word Doc from text in EditField


 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>


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.1/354 - Release Date: 6/1/2006


_______________________________________________
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>

Reply via email to