Spire.DocViewer for .NET is a powerful Word Viewer component for developers to display, convert and interact with Word Documents easily.

Thu Oct 31, 2013 11:18 am

a.zip
Hi forum.
I am using a self made software that merges docx documents using chunks.
The code can be found below. I think it’s common technique according to MSD forums.
I can open the original a.docx and the original b.docx document in the viewer
(spire.docviewer_hotfix_1.3.1)
But the merged document cannot be opened (the sandbox appears but nothing happened)
Opening in Word 2010 works well .
I attached the result doc a.docx
I would be very graceful for any suggestion.
Many thanks in advance
Best regards Andreas
Just checked V 1.3 and this Version opens the file but displays not the merged part (second chunk)

Code: Select all
Using myDoc = DocumentFormat.OpenXml.Packaging.WordprocessingDocument.Open("c:\temp\a.docx", True)
            Dim altChunkId = "AltChunkId" + DateTime.Now.Ticks.ToString().Substring(0, 2)
            Dim mainPart = myDoc.MainDocumentPart
            Dim chunk = mainPart.AddAlternativeFormatImportPart(
                DocumentFormat.OpenXml.Packaging.AlternativeFormatImportPartType.WordprocessingML, altChunkId)
            Using fileStream As IO.FileStream = IO.File.Open("c:\temp\b.docx", IO.FileMode.Open)
                chunk.FeedData(fileStream)
            End Using
            Dim altChunk = New DocumentFormat.OpenXml.Wordprocessing.AltChunk()
            altChunk.Id = altChunkId
            mainPart.Document.Body.InsertAfter(altChunk, mainPart.Document.Body.Elements(Of DocumentFormat.OpenXml.Wordprocessing.Paragraph).Last())
            mainPart.Document.Save()
        End Using

AWCRAWCODE
 
Posts: 11
Joined: Thu Oct 25, 2012 2:47 pm

Fri Nov 01, 2013 2:58 am

Hello,

Thanks for your inquiry.

We have reproduced the issue with docviewer_hotfix_1.3.1 you experienced, which has been transferred to our Dev team, once there is any progress from them, we will get it back to you immediately. Sorry for inconvenience.

Regarding you say
Just checked V 1.3 and this Version opens the file but displays not the merged part (second chunk)
, sorry that I don't understand what you mean, I see it displays entirely, could you please provide us some screenshots or your original document if convenience? It would be helpful to reproduce the issue.

Thanks And Regards,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Nov 04, 2013 7:39 am

Hi. Garry.
What I meant is that the hotfix does not open the document at all, i only see the sandbox .
The Version prior to the hotfix opens the document but I can only see the first part.
That doc that has been added is not visible.
Regards

AWCRAWCODE
 
Posts: 11
Joined: Thu Oct 25, 2012 2:47 pm

Tue Nov 05, 2013 1:36 am

Hello,

Thanks for your feedback.

Regarding the issue that the newest hotfix does not open the document at all and you only see the sandbox, we have reproduced and transferred to our Dev team, once it is resolved, we will inform you immediately, sorry for inconvenience.

About the issue that the Version prior to the hotfix opens the document but you can only see the first part, I tested the doc you added with Spire.DocViewer for .NET Version:1.3, it works fine and displays entirely, please see screenshot in attachment.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Fri Nov 08, 2013 8:27 am

Hi Garry.
I compiled some examples.
PLS see attached Zip:
Part 1.docx : The first document
Part 2.docx : the second document
Part 1 & 2.docx the result of merge using chunks
Screenshot 1.3 : opened result doc with V 1.3 , you see only Part 1.
Screenshot hotfix: You see sandbox.
I hope this helps.
Best Regards

AWCRAWCODE
 
Posts: 11
Joined: Thu Oct 25, 2012 2:47 pm

Mon Nov 11, 2013 7:37 am

Hi,

Sorry for late reply as weekend. Thanks for your information, which is helpful.
Our Dev team is fixing the issue about v1.3.1, but sorry that we tested the document(Part 1 & 2.docx) you provided with Spire.DocViewer.Forms.dll V1.3.0.10040 and don't reproduce the issue you experienced with V 1.3(see screenshot as below). Could you please provide us your operation system information and culture if convenience?
Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Nov 12, 2013 9:48 am

Hi Garry
CultureInfo("de-DE", False)

Its Windows 7
Strange that you can not reproduce this...
Thanks for your help

AWCRAWCODE
 
Posts: 11
Joined: Thu Oct 25, 2012 2:47 pm

Wed Nov 13, 2013 6:07 am

Hello,

To help us investigate the issue that you only see the part1, could you please download the newest hotfix of SPire.Doc4.9.39(http://www.e-iceblue.com/Download/downl ... t-now.html) and test the Demo in the attachment? And send the generated Pdf file to us.

Thanks in advance,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Nov 13, 2013 10:25 am

Hi Gary.
Seems to work.
I can see both parts.
Just for your Info:
If I put the binaries to my spire.docviewer example it does not run anymore because
Could not load file or assembly 'Spire.Doc, Version=4.9.6.10040, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
I think it has to do with the spire.docviewer.forms
I bought the viewer component and do not use the suite

Best regards

AWCRAWCODE
 
Posts: 11
Joined: Thu Oct 25, 2012 2:47 pm

Wed Nov 13, 2013 10:30 am

I also tested the demo with my generated documents and they all are shown correct in the PDF.
Now I need the doc.viewer binaries :-)

AWCRAWCODE
 
Posts: 11
Joined: Thu Oct 25, 2012 2:47 pm

Thu Nov 14, 2013 5:17 am

Hello,

Thanks for your feedback.

Do you need the newest Spire.DocViewer Release package now? If so, sorry that we are building, once it completes, we will inform you immediately.

If there are any questions, welcome to get it back to us.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Nov 14, 2013 7:23 am

Hi Gary.
If the new relase will be available end of next week its ok.
Many thanks for helpig with this issue.
Best regards

AWCRAWCODE
 
Posts: 11
Joined: Thu Oct 25, 2012 2:47 pm

Mon Nov 18, 2013 9:46 am

Hi,

The newest hotfix of Spire.DocViewer has been released, you could download it from the following link and test.
http://www.e-iceblue.com/downloads/hot_ ... 1.3.14.zip

If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Nov 19, 2013 9:12 am

Works.
Many thanks.

AWCRAWCODE
 
Posts: 11
Joined: Thu Oct 25, 2012 2:47 pm

Wed Nov 20, 2013 7:09 am

Happy to hear that. If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.DocViewer

cron