Export as JPG with "crop to page on export"

Hi -

with the code below I export a page to JPG and it works.

But how can i set the option "crop to page on export" which you see in the GUI Export dialog

thank you in advance!

Claus

--------------------

  Set struct_Exp_opt = CreateStructExportOptions
  With struct_Exp_opt
    .AntiAliasingType = cdrNormalAntiAliasing
    .Transparent = False
    .Dithered = False
    .UseColorProfile = True
    .Overwrite = True
    .MaintainAspect = True
    .ResolutionX = 300
    .ResolutionY = 300
    .MatteColor.RGBAssign 255, 255, 255
  End With
    
  Set pal_opt = CreateStructPaletteOptions
  With pal_opt
    .NumColors = 256
    .DitherType = cdrDitherNone
    .DitherIntensity = 100
    .PaletteType = cdrPaletteAdaptive
  End With
 
 
  Set ExpFilter = pg.Parent.Parent.ExportEx(strFullPath, file_type, cdrCurrentPage, struct_Exp_opt, pal_opt)
 
  ExpFilter.Finish