How do I set properties in codeof a chart embedded in a report?

J

Joseph Boland

I have a report with several embedded charts of type "MSGraph.Chart.8". If
I'm not mistaken, each chart is a control with the chart itself a child
object of the control. I have no trouble setting the rowsource property of
these chart controls using code like the following, where
"grphSelfAssessments" is the name of the control in the report.

Reports(strReportName).Controls("grphSelfAssessments").RowSource =
strRowSource

However, I cannot find the right syntax for setting properties of the
underlying chart object, such as the alignment of the X axis label, the chart
title, and so forth.

Please note that my code is working with an already designed report, not
creating one from scratch. In particular, the chart controls already exist
when the report is opened in desing mode in code.

--
Joseph Boland
Application Developer
Educational & Community Supports
University of Oregon
Eugene, OR 97403-1235
 

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