Alignment Problem - for Thao Moua

T

Trevor

I am experiencing a very frustrating problem related to the alignment of the caption for totals on my pivot table using OWC 10

I have swopped my totals to appear as rows using the following cod

// Set Total Orientatio
l_oView.TotalOrientation = c_sPivotTableConstants.plTotalOrientationRow

This makes all the captions centred which does not look so great. So I want to left align the captions with the following code

// Left Align Totals in Dat
for (j = 0; j < l_oView.DataAxis.Totals.Count; j++)
l_oView.DataAxis.Totals(j).CaptionHAlignment = c_sPivotTableConstants.plHAlignLeft


and nothing happens. Funny enough if I use the following code to align the total itself (not the caption)

// Left Align Totals in Dat
for (j = 0; j < l_oView.DataAxis.Totals.Count; j++)
l_oView.DataAxis.Totals(j).HAlignment = c_sPivotTableConstants.plHAlignLeft


it works

Thanks
 

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

Similar Threads


Top