ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Import grafic (https://www.excelbanter.com/excel-programming/332621-import-grafic.html)

RcCluster

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 ;-)


All times are GMT +1. The time now is 06:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com