Option ExplicitImplements IImportCropHandlerPrivate Function IImportCropHandler_Crop(Options As IStructImportCropOptions) As Boolean Dim s As String s = "Original Settings: " & vbCr s = s & "DpiX: " & Options.DpiX & vbCr s = s & "DpiY: " & Options.DpiY & vbCr s = s & "FileName: " & Options.FileName & vbCr s = s & "Filter: " & Options.FilterID & vbCr s = s & "ImageHeight: " & Options.ImageHeight & vbCr s = s & "ImageWidth: " & Options.ImageWidth & vbCr ' Display the original settings in a message box MsgBox s ' If the custom data is set to 7 then crop half of the original; otherwise, subtract 0.5 units from the height and width. If Options.CustomData = 7 Then Options.Height = Options.Height / 2 Options.Width = Options.Width / 2 Options.Top = Options.Top / 2 Options.Left = Options.Left / 2 Else Options.Height = Options.Height - 0.5 Options.Width = Options.Width - 0.5 End IfEnd Function