AddNamedRow Fails

G

gaurav.makin

Hi, I'm working in VC++ to work with Visio, I'm having strange issue, When i
add a
Named Row Custom Property it works some time and some it fails.

_bstr_t btPropName("Prop1")
pShape->AddNamedRow((short) (VisSectionIndices)
visSectionProp,_btPropName, (short) (VisRowIndices)
visRowProp,&intRowIndex);

btPropName is Unique alwats.

It fails with Error Code : -2032465656.

What can be the reason?
 
J

JuneTheSecond

In VBA AddNamedRow has just 3 arguments, is it OK in VC++ ?
the 3rd. arg to be visRowProp (= 0), but not visRowProp + Index, is it OK in
VC++ ?

In VBA, I = objShape.AddNamedRow(visSectionProp, "UniqueName", visRowProp)
 
G

gaurav.makin

visRowProp + Index ...

In VC++ i'm passing 3rd paramater as visRowProp (= 0), the fourth paramter
is "&intRowIndex",
which returns the Index of the row added.
 
M

Michel LAPLANE

have you verify that the rowname is a valid name, i mean without non
alpahanum character (".,$,:, ......)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top