Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically add a Word olecontrol and load with a f
Message
From
23/04/1998 13:58:00
 
 
To
23/04/1998 13:55:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00094373
Message ID:
00094376
Views:
23
Sorry, 'bout that. I _do_ actually have a question!

The following is my code that I would hope would add an olecontrol to a page and display in it a Word doc that exists. The code exectutes but the Olecontrol doesn't show itself, much less the document.

Please help this brain dead soul. TIA

>IF .NOT. EMPTY( cDoc ) .AND. FILE ( cDoc )
>
> this.addobject('oOLEobj','olecontrol','word.basic' )
> this.oOLEobj.FileOpen( cDoc )
> this.oOLEobj.left = 2
> this.oOLEobj.Top = 60
> this.oOLEobj.height = this.parent.pageHeight - 60
> this.oOLEobj.width = this.parent.pageWidth - 4
> this.oOLEobj.refresh()
> this.oOLEobj.Visible = .t.
>
>ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform