It is possible to link Word to an Excel spreadsheet via VBA command similar to
this:

Selection.InlineShapes.AddOLEObject ClassType:="Excel.Sheet", filename:= _
"C:\excel\datasheet.xls", linktofile:=True, DisplayAsIcon:=False

Is a similar (or dissimilar, but functional) link to a .pdf file possible? I
just want the 'image' of the file, not ability to edit, etc..

Thanks.

Roy

RE: Link to PDF file using VBA? by Ranjan

Ranjan
Thu Mar 24 07:21:04 CST 2005

Can we embed .zip & .pdf files via .Net in Excel sheets? We are using
following for embeding other MS Office files,

Excel.Shape shp = (Excel.Shape)oSheet.Shapes.AddOLEObject(Type.Missing
,@"D:\Customers.xls" ,true,true,"packager.exe",0,"test.xls",Type.Missing
,Type.Missing ,Type.Missing ,Type.Missing );

Thanks!

"Roy Lasris" wrote:

> It is possible to link Word to an Excel spreadsheet via VBA command similar to
> this:
>
> Selection.InlineShapes.AddOLEObject ClassType:="Excel.Sheet", filename:= _
> "C:\excel\datasheet.xls", linktofile:=True, DisplayAsIcon:=False
>
> Is a similar (or dissimilar, but functional) link to a .pdf file possible? I
> just want the 'image' of the file, not ability to edit, etc..
>
> Thanks.
>
> Roy
>