G
Gary
I have a table with a field setup as an oleobject into which I insert a
standard visio template.
How can I take this OLE field from the table and create a power point side
from it?
I have inserted jpg pictures into power point with the following:
Dim oPPT As PowerPoint.Application
Dim oPres As Presentation
Set oPPT = New PowerPoint.Application
Set oPres = oPPT.Presentations.Add(True)
oPres.Slides.Add(oPres.Slides.Count+1, ppLayoutBlank).Shapes.AddPicture
"c:\junk\dsc_0010.jpg", False, True, 10, 10
oPres.SaveAs "c:\documents and settings\ec925b\my
documents\junk\def\testppt.ppt", ppSaveAsPresentation, True
oPres.Close
Set oPres = Nothing
oPPT.Quit
Set oPPT = Nothing
There is a command called AddOLEObject
oPres.Slides.Add(oPres.Slides.Count + 1, ppLayoutBlank).Shapes.AddOLEObject
Left:=100, Top:=100, Width:=150, Height:=50,
classname:="Forms.CommandButton.1"
This works, but the problem is How do I associate the OLEObject in the Table
to be added to the power point???
I would appreciate any help!
Thanks,
G
standard visio template.
How can I take this OLE field from the table and create a power point side
from it?
I have inserted jpg pictures into power point with the following:
Dim oPPT As PowerPoint.Application
Dim oPres As Presentation
Set oPPT = New PowerPoint.Application
Set oPres = oPPT.Presentations.Add(True)
oPres.Slides.Add(oPres.Slides.Count+1, ppLayoutBlank).Shapes.AddPicture
"c:\junk\dsc_0010.jpg", False, True, 10, 10
oPres.SaveAs "c:\documents and settings\ec925b\my
documents\junk\def\testppt.ppt", ppSaveAsPresentation, True
oPres.Close
Set oPres = Nothing
oPPT.Quit
Set oPPT = Nothing
There is a command called AddOLEObject
oPres.Slides.Add(oPres.Slides.Count + 1, ppLayoutBlank).Shapes.AddOLEObject
Left:=100, Top:=100, Width:=150, Height:=50,
classname:="Forms.CommandButton.1"
This works, but the problem is How do I associate the OLEObject in the Table
to be added to the power point???
I would appreciate any help!
Thanks,
G