MSGraph and positioning

P

paul

Hi everyone! I am facing a bit of a difficulties with positioning the
MSGraph objects within a word document. The idea is that several graphs get
inserted onto specific word document each on a new page. What I have now is
this -

Sub AddChart(ByVal detailsOfChartToBeInserted)

Dim shp As Word.Shape
shp =
_wordDocument.Shapes.AddOLEObject(ClassType:="MSGraph.Chart.8")

'Code to transform the object goes here

shp.ZOrder(Office.MsoZOrderCmd.msoSendBehindText)

If Not shp Is Nothing Then
shp = Nothing
End If

_wordDocument.Sections.Add()
End Sub

Using Visual Studio 2003, Visual Basic, Word 9. Basically this sub is
getting called several times via a foreach loop with different parameters.
What it does is inserting new chart on top of another and I need to have each
chart at the last paragraph of the document at the time of insertion as the
document does not only contains charts. Thanks in advance
 

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