Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
C# Interop Shape xlMoveAndSize property doesn't stick
I create a shape and set the Placement as follows...
Excel.Shape myPicture = _ActiveSheet.Shapes.AddPicture(Location, MsoTriState.msoFalse, MsoTriState.msoTrue, TargetLeft, TargetTop, TargetWidth, TargetHeight); myPicture.Placement = Excel.XlPlacement.xlMoveAndSize; Problem is, the xlPlacement will not stick. The property remains as xlMove. Even trying to force a change in the watch window deson't work. Anyone knows what's going on (or whats wrong) here? Thanks BIG_j |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
C# Interop Shape xlMoveAndSize property doesn't stick
More Information, if it helps...
This only happens when the "Shape" is not a standard in-built Excel Shape "BIG_j" wrote in message ... I create a shape and set the Placement as follows... Excel.Shape myPicture = _ActiveSheet.Shapes.AddPicture(Location, MsoTriState.msoFalse, MsoTriState.msoTrue, TargetLeft, TargetTop, TargetWidth, TargetHeight); myPicture.Placement = Excel.XlPlacement.xlMoveAndSize; Problem is, the xlPlacement will not stick. The property remains as xlMove. Even trying to force a change in the watch window deson't work. Anyone knows what's going on (or whats wrong) here? Thanks BIG_j |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
C# Interop Shape xlMoveAndSize property doesn't stick
In what way is 'ActiveSheet.Shapes.AddPicture(etc..' not a standard shape
Can you change the property manually, if so try changing myPicture.Placement = Excel.XlPlacement.xlMoveAndSize; to myPicture.Placement = 1; though not sure why that would fix if as you say xlMoveAndSize is found in the library and works with a 'normal' shape. Regards, Peter T "BIG_j" wrote in message ... More Information, if it helps... This only happens when the "Shape" is not a standard in-built Excel Shape "BIG_j" wrote in message ... I create a shape and set the Placement as follows... Excel.Shape myPicture = _ActiveSheet.Shapes.AddPicture(Location, MsoTriState.msoFalse, MsoTriState.msoTrue, TargetLeft, TargetTop, TargetWidth, TargetHeight); myPicture.Placement = Excel.XlPlacement.xlMoveAndSize; Problem is, the xlPlacement will not stick. The property remains as xlMove. Even trying to force a change in the watch window deson't work. Anyone knows what's going on (or whats wrong) here? Thanks BIG_j |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Manually changing a picture (shape) name property | Excel Discussion (Misc queries) | |||
Excel automation through .NET Interop: NumberFormat property looks like NumberFormatLocal | Excel Programming | |||
automatic shape property settings | Excel Programming | |||
Capturing Shape Name/Text from OnAction property | Excel Discussion (Misc queries) | |||
Invalid procedure call in use of Shape property?? | Excel Programming |