Reference Cust Prop from VB.NET

J

John

Hi,

I'm having a litle trouble with adding a custom properties row and then
referencing it to add things like the Label etc:

From the code below...it's the second part I'm having trouble with. I've
Section element right (I think) but I know the row reference isn't correct.

Can anyone set me on the right path?

Thanks

John


'Add row to custom properties named "HdrDate"

vDoc.Pages.Item("Firstpage").Shapes("ThePage").AddNamedRow( _

VisSectionIndices.visSectionProp, _

"HdrDate", VisRowTags.visTagDefault)



'Add "Header Date" string to Label cell

vDoc.Pages.Item("Homepage").Shapes("ThePage").CellsSRC( _

VisSectionIndices.visSectionProp,
VisRowIndices.visRowMember("Prop.HdrDate"), _

VisCellIndices.visCustPropsLabel)
 
S

shashi behari

Don't know if you've seen the SDK example, but they keep a ref to the row
index when they add the row:

rowIndex = AddNamedRow(...);

then use the index to reference that row repeatedly.
 
S

shashi behari

if you have the code librarian installed, there's a sample called Custom
Property Add
 

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