We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

User cell UFEV value not saved correctly

To reproduce this problem, the following needs to be done.

  1. Open file
  2. Modify User Cell UFEV values for a shape
  3. Save file as VSDM
The changes made to the V value are not kept when the file is re-opened.The changes to the other values are saved correctly.

This is very similar to defect ticket ID DIAGRAMNET-51237 and can be reproduced in the same way.

Regards,
Andrew

Hi Andrew,


Thank you for contacting support. We could not track the UFEV values of User cells. Kindly share complete details of the use case, including Visio drawing and code. Your response is awaited.

Hi


As requested I’ve attached a sample Visio file and have given some code fragments below to help illustrate the problem.

Please let me know if you need any more information.

Regards,
Andrew

SetLicence()
Dim objDirInfo As DirectoryInfo = New DirectoryInfo(txtVisioFile.Text)
TestUEFV(objDirInfo)
VerifyUEFV(objDirInfo)


Private Sub TestUEFV(ByVal objDirInfo As DirectoryInfo)
For Each objFileIO As FileInfo In objDirInfo.GetFiles("" & fileExtension) 'loop through all files with the relevant extension
currentFilename = objFileIO.FullName
Dim map As New Aspose.Diagram.Diagram(objFileIO.FullName)

For Each page As Aspose.Diagram.Page In map.Pages
For Each shape As Aspose.Diagram.Shape In page.Shapes
Dim user As New Aspose.Diagram.User
user.Name = USERCELL_NAME
Dim ufev As New Aspose.Diagram.UnitFormulaErrV(USERCELL_UFEV_UNIT, USERCELL_UFEV_F, USERCELL_UFEV_E, USERCELL_UFEV_V)
user.Value.Ufev = ufev
shape.Users.Add(user)
Next
Next

map.Save(objFileIO.FullName, Aspose.Diagram.SaveFileFormat.VSDM)
Next

End Sub

Private Sub VerifyUEFV(ByVal objDirInfo As DirectoryInfo)
For Each objFileIO As FileInfo In objDirInfo.GetFiles("" & fileExtension) 'loop through all files with the relevant extension
currentFilename = objFileIO.FullName
Dim map As New Aspose.Diagram.Diagram(objFileIO.FullName)

For Each page As Aspose.Diagram.Page In map.Pages
For Each shape As Aspose.Diagram.Shape In page.Shapes
Dim user As New Aspose.Diagram.User
Dim ufev As Aspose.Diagram.UnitFormulaErrV
user = shape.Users.GetUser(USERCELL_NAME)

ufev = user.Value.Ufev
If ufev.Unit <> USERCELL_UFEV_UNIT Then
WriteToLog(“Test Fail (UEFV unit mismatch). Shape name=” & shape.Name & " Map name=" & objFileIO.FullName)
End If
If ufev.F <> USERCELL_UFEV_F Then
WriteToLog(“Test Fail (UEFV F mismatch). Shape name=” & shape.Name & " Map name=" & objFileIO.FullName)
End If
If ufev.Err <> USERCELL_UFEV_E Then
WriteToLog(“Test Fail (UEFV E mismatch). Shape name=” & shape.Name & " Map name=" & objFileIO.FullName)
End If
If ufev.V <> USERCELL_UFEV_V Then
WriteToLog(“Test Fail (UEFV V mismatch). Shape name=” & shape.Name & " Map name=" & objFileIO.FullName)
End If

Next
Next
Next

End Sub

Hi Andrew,

Thank you for sending source VSDM and code. We managed to replicate the problem of not being able to save/retrieve the User cell UFEV value. It has been logged under ticket ID DIAGRAMNET-51243 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates. We are sorry for the inconvenience caused.

Hi Andrew,


Thank you for being patient. We have resolved the ticket ID DIAGRAMNET-51243. If there is no issue in the quality assurance phase, then this fix will be included in the next version 17.5 of Aspose.Diagram for .NET API. We will notify you in this thread as soon as the new release is published.

The issues you have found earlier (filed as DIAGRAMNET-51237;DIAGRAMNET-51243) have been fixed in Aspose.Diagram for .NET 17.5.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.