Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Apr 03, 2023 5:54 am

Hello all,

we have a problem with Spire.Doc.

When we create letters in Word that contain tables and then open and save them with Spire, the table moves (as shown in picture 2).

The source code that is used should not have any influence on the table.

Thank you in advance for any tips or solutions.

Quellcode that is used:

Code: Select all
Using doc As New Spire.Doc.Document
' Document laden
doc.LoadFromFile(docPath)

' Alle Kommentare loeschen
doc.Comments.Clear()
' Nachverfolgungen ausblenden
doc.TrackChanges = False
doc.AcceptChanges()

doc.SaveToFile(docPath, Spire.Doc.FileFormat.Doc)
End Using


hammes_it
 
Posts: 13
Joined: Wed Nov 13, 2019 11:47 am

Tue Apr 04, 2023 7:57 am

Hi,

Thanks for your inquiry.
Could you please provide us with the following messages t help us reproduce your issue? you can send them to us via email ([email protected]) or attach them here. Thanks for your assistance.
1) your test document.
2) the version of Spire.Doc or Spire.Office you are using.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Tue Apr 18, 2023 7:50 am

Hello,

Thanks for the reply and sorry it took so long to respond.

I have attached 2 PDF documents created with 2 different versions of Spire and the original Word document.

The code used is simply as follows:

Code: Select all
        Using doc As New Spire.Doc.Document
            ' Doc Load
            doc.LoadFromFile(inpFile)

            ' Delete all Comments
            doc.Comments.Clear()
            ' Hide Tracking
            doc.TrackChanges = False
            doc.AcceptChanges()

            doc.SaveToFile(inpFile, Spire.Doc.FileFormat.Doc)
        End Using



Code: Select all
Using doc As New Spire.Doc.Document
            ' Doc Load
            doc.LoadFromFile(inpFile)


            If System.IO.File.Exists(outFile) Then
                System.IO.File.Delete(outFile)
            End If
            doc.SaveToFile(outFile, Spire.Doc.FileFormat.PDF)
        End Using



Thanks for the help

hammes_it
 
Posts: 13
Joined: Wed Nov 13, 2019 11:47 am

Tue Apr 18, 2023 10:06 am

Hi,

Thanks for your feedback.
I have tested your code, using our latest Spire.Doc (11.4.0), I did not reproduce your issue, the table is well aligned, see attached picture for reference.
test.png

We suggest that you download and install the latest version to test if the problem still persists.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Thu Apr 27, 2023 10:02 am

Hello

Thank you for the quick reply.

We have only licensed Spire.Office version 5.11.5.

We have also tried the whole thing with Spire.Office version 8.4.0 to see if it might work there and we have to upgrade our version accordingly, but here too the tables are moved.

According to the package description, Spire.doc version 11.4.0 is included in Spire.Office 8.4.0.

We have also tested the whole thing with several letters and, curiously, this does not happen with all tables.

hammes_it
 
Posts: 13
Joined: Wed Nov 13, 2019 11:47 am

Fri Apr 28, 2023 1:53 am

Hi,

Thank you for taking the time to provide feedback on our latest version of Spire.Office. We apologize for the inconvenience caused by the issue with some tables appearing moved.

I tried the latest Spire.Doc and Spire.Office, they both work fine. In order to help us investigate this further, could you kindly provide us with some documents where this problem occurs consistently?

This will greatly assist our development team to identify and fix the issue as soon as possible. Thank you again for your valuable feedback and we look forward to resolving this matter for you.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Mon May 08, 2023 8:41 am

Hi,

Thanks for your feedback.
We apologize for any inconvenience caused by our initial failure to reproduce the issue.
After retesting, we were able to replicate the problem. We have recorded it in our issue tracking system with the ticket number SPIREDOC-9395 and our development team will investigate and fix it. Once the issue is fixed, I will inform you asap.

We appreciate your patience and understanding as we work towards resolving this issue. Please let us know if you have any further questions or concerns.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.Doc

cron