API Documentation > CorelDRAW > 2025-v26 > PrintTrapping > IPrnVBAPrintTrapping
PrintTrapping.ObjectsToImage property
Specifies whether objects should be trapped to bitmap images
Syntax:
Property Get ObjectsToImage() As Boolean
Property Let ObjectsToImage(ByVal Value As Boolean)
Remarks:
The ObjectsToImage property specifies a Boolean (True or False) value that indicates whether vector objects are trapped to images.
Examples:
The following VBA example stores the current setting of objects-to-image trapping. It displays the dialog box that shows that this option is enabled and then restores the previous setting.
Sub Test()
Dim bObjectsToImage As Boolean
With ActiveDocument.PrintSettings
  With .Trapping

 bObjectsToImage = .ObjectsToImage

 .ObjectsToImage = True
  End With
  .ShowDialog
  .Trapping.ObjectsToImage = bObjectsToImage
End With 
End Sub