Private inkData() As Byte Private Sub CommandButton1_Click() If InkPicture1.InkEnabled Then inkData = InkPicture1.ink.Save(MSINKAUTLib.InkPersistenceFormat.IPF_InkSerializedFormat, MSINKAUTLib.InkPersistenceCompressionMode.IPCM_NoCompression) End If End Sub
Dim ink As MSINKAUTLib.InkDisp Set ink = New MSINKAUTLib.InkDisp ink.Load inkData Dim Stroke As MSINKAUTLib.IInkStrokeDisp For Each Stroke In ink.Strokes If Stroke.ExtendedProperties.DoesPropertyExist(inkExtendedGuid1) Then v = Stroke.ExtendedProperties(inkExtendedGuid1).Data ElseIf Stroke.ExtendedProperties.DoesPropertyExist(inkExtendedGuid2) Then v = Stroke.ExtendedProperties(inkExtendedGuid2).Data End If Next