Programatically create report containing linked OLE ?

A

art_333

I must be doing somethign wrong. Any help would be appreciated...

I've got the object full path in the database, I can get the object into
forms just fine.
But, when I try to create a report I can't figure our how to get the linked
object to exist...

Here's what I'm trying to do:

Set rptDescrip = CreateReportControl(rptDetails.Name, acObjectFrame,
acDetail)
'Descr Object
rptDescrip.Top = 4800
...
rptDescrip.Class = "Microsoft.Word.8"
rptDescrip.OLEClass = "Microsoft Word"
rptDescrip.Enabled = True
rptDescrip.OLETypeAllowed = acOLELinked
rptDescrip.SourceDoc = <the full path to the file>
rptDescrip.Action = acOLECreateLink

But - It won't let me do the Action....
Any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top