Thread: Import grafic
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
RcCluster RcCluster is offline
external usenet poster
 
Posts: 1
Default Import grafic

Dear Newsgroup,

Maybe this is a newbe problem, but I can't find a solution:

In VB.Net I can use the Method Shapes.AddPicture in this way to add a
pcx-grafic in its own proportions

sh = xl.ActiveCell.Worksheet
shps = sh.Shapes
pic = shps.AddPicture("F:\Datenbilder\Bilder\Schuhe\2501 22.pcx")

Unfortunaly (I'm working with Peter Whitechapel book) I'm using C#. Thus I
can't skip parameters!

shps.AddPicture("F:\Datenbilder\Bilder\Schuhe\2501 22.pcx",boolean, boolean,
float, float, float)

And here is my question:

I want to skip the floats! How can I do this? I can't use
System.Type.Missing or System.Reflections.Missing.Value. This cause a
compiler error!

Please help me!
Thanks
RcCluster ;-)