Oracle Forms (MOSC)

MOSC Banner

How to use ole2 to tab in MS Word?

edited Mar 22, 2010 9:19AM in Oracle Forms (MOSC) 1 commentAnswered
This is for all you ole2 gurus.

I am new to the user of ole2. I am using ole2 to output the contents of a block in my Forms 6i application to a MS Word document. I need to format the output so that after writng a text the cursor should move 'n' tabstops before writing the value of the block's field.

I ran the macro recorder in Word to see the VB commands that are executed when tabbing and I got the following 2 macros:

 Sub Macro1()
'
' Macro1 Macro
' Macro recorded 3/20/2010 by ssharma
'
    Selection.ParagraphFormat.TabStops.ClearAll
    ActiveDocument.DefaultTabStop = InchesToPoints(3)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center