-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Home > Community > Automation and VBA > Automating JPEG export of charts > Reply To: Automating JPEG export of charts
March 23, 2015 at 9:35 am
#9382
Bernhard Kantz
Participant
The document consists of a collection of pages, each containing a collection of shapes. Some of them like tables and diagrams have DocObjects associated with. The following sample enumerates the diagrams of a document and displays their name.
Sub DocuTest()
Dim oDoc As Document
Set oDoc = ThisDatabase.RootFolder("Dokument", fpObjectTypeDocument)
Dim oShapes As Shapes
For Each oShapes In oDoc.Pages
Dim oShape As Shape
For Each oShape In oShapes
If Not oShape.DocObject Is Nothing Then
If oShape.DocObject.ObjectType = fpObjectType2DDiagram _
Or oShape.DocObject.ObjectType = fpObjectType3DDiagram Then
MsgBox oShape.DocObject.Name
End If
End If
Next
Next
End Sub