Show a data card of a file in a window "pop up" with IEdmFolder5::CreateCardView

Hello, I have a problem, I want to show the data card of a file and that the user can edit it , I use the method IEDMEFolder5:CreateCardView, but it don´t work....

I have this code in VB.net with a form called form1 an one botton called createdcard:

Public Class Form1

   

    Dim vault As IEdmVault10

    Dim poCardView As IEdmCardView6

    Dim swfilename As String

    Dim file As IEdmFile5

    Dim folder As IEdmFolder5 = Nothing

    Dim poArgs As EdmCardViewParams

    Dim poCallback

    Dim ppoRetView As IEdmCardViewCallback7

     Dim lCardID As Integer

     Private Sub CreateCard_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

 

        On Error GoTo ErrHand

        vault = New EdmVault5

        vault.LoginAuto("My_vault", 0)

            

       

        swfilename = vault.RootFolderPath & "\\" & "Libro1.xlsx"

         file = vault.GetFileFromPath(swfilename, folder)

        lCardID = folder.GetCardID("xlsx")

   

       poCardView = vault.CreateCardViewEx(EdmCardViewFlag.EdmCvf_Normal, lCardID, 0, 0, 0, Me) '¿?¿?¿?¿?¿?¿?¿?¿

  

        poCardView.ShowWindow(True)

  

      End Sub

End class

SolidworksApi macros