visLayerVisible not available

Started by Raleglover, September 02, 2012, 08:55:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Raleglover

Hi all,

I am trying to execute a statement(s) like ...

vsoLayer.CellsC(visLayerVisible[/color]).FormulaU = "0"

... but my intellesense (Visual studio 2010) doesn't show visLayerVisible as a choice. There are tons of other visXXXXXXXX choices, but not visLayerVisible. I'm importing the .NET DLLs from visio professional. I don't have any prior Visio versions installed.

I've read through lots of examples that show the use of visLayerVisible with no hint of a speclal Import or not being supported in 2010.

Looking for some help. Thanks!

aledlund

how are you defining/assigning vsoLayer?
al

Jumpy


aledlund

add

imports Microsoft.Office.Interop.Visio.VisCellIndices

to your definitions (vs2010 doesn't drill down very well into visio definitions). The trick is to look up the definition in the Object Browser to find which enumerations you need.

al