Problem with CaptionHAlignment

T

Trevor

Hi anybod

I am very frustrated. I am trying to left align my totals in a pivot table using OWC DOM.

Why does this code work (to left align the numbers

for (j = 0; j < l_oView.DataAxis.Totals.Count; j++)
l_oView.DataAxis.Totals(j).HAlignment = c_sPivotTableConstants.plHAlignLeft


and this one does nothing (to left align the captions

for (j = 0; j < l_oView.DataAxis.Totals.Count; j++)
l_oView.DataAxis.Totals(j).CaptionHAlignment = c_sPivotTableConstants.plHAlignLeft
 

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