Re: OLE2 FORMS6 WORD2000

From: SoulSurvivor <markyg_7_at_yahoo.co.uk>
Date: 4 Dec 2002 00:40:40 -0800
Message-ID: <8d9c6fd.0212040040.6f9f0c76_at_posting.google.com>


This is normal functionality.

You are selecting all text from Word2000 and placing it in a pure text variable. All formatting will be lost that way.

Not sure how you can retain formatting. You can try searching MetaLink (http:\\metalink.oracle.com) but it may be beyond Forms scope.

Only other thing i can thin of is opening another 'invisible' Word2000 document and cutting your text into that instead of a variable.

M

bedrocks <bedrock_at_pobox.com> wrote in message news:<tt8quu07p58o1n15j1td628k54b8suuju2_at_4ax.com>...
> Trying to retrieve body of text form MS Word 2000.
> I can get the text but all formatting is lost.
> Need to retrieve text and formatting.
>
> creating a new document
> insert formatted text
> retrive the formatted text
> -----------------------------------------
> DECLARE
> application OLE2.OBJ_TYPE;
> sel_text VARCHAR2(1000);
>
> BEGIN
>
> application:=OLE2.CREATE_OBJ('Word.Basic');
> OLE2.INVOKE(application, 'AppShow');
>
> OLE2.INVOKE(application, 'FileNew');
>
> -- insert formatted text into open word document
>
> OLE2.INVOKE(application, 'EditSelectAll');
> sel_text:=OLE2.GET_CHAR_PROPERTY(application, 'Selection');
>
> TIA
Received on Wed Dec 04 2002 - 09:40:40 CET

Original text of this message