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.

Tue Jan 31, 2012 5:14 pm

Hi,

Using spire.office version from 4.January 2012.

Using Word .DOC version as masterdocument for mailmerge. Inserting a single "Section break" makes the merge process to return exception with message "Stack empty".

Solution is to delete every "Section brak" in the document and it works again.

Is this know BUG?

Kristian Hyllestad
www.spine.no
Norway

krhyll
 
Posts: 23
Joined: Fri Nov 11, 2011 12:27 pm

Wed Feb 01, 2012 3:14 am

Hi Kristian Hyllestad,

Thanks for evaluating Spire.Office.


We've created a research on this problem, but we can't reproduce it. Could you please offer original file and your code to help us better reproduce this problem? Thanks for your understanding and cooperation.

Have a great day.

Suvi
e-iceblue support
User avatar

Suvi.Wu
 
Posts: 154
Joined: Thu Oct 20, 2011 2:53 am

Thu Feb 02, 2012 10:42 pm

Attached .ZIP file containing:
- NoSectionBreak.DOC
- WithSectionBreak.DOC
- MergedDocument.DOC

The document WithSectionBreak.DOC is identical to NoSectionBreak.DOC but two "Section breaks" added.

Using WithSectonBreak.DOC mailmerge operation within spire.office returns "Stack empty" message. The noSectionBreak.DOC works perfectly and mailmerged document also attached.

We have a license on your product and we use it in a national wide production system in Norway, so we need this fixed since users are customizing their own documents and often containing section breaks.

Kristian Hyllestad
www.spine.no
Norway

krhyll
 
Posts: 23
Joined: Fri Nov 11, 2011 12:27 pm

Fri Feb 03, 2012 1:50 am

Hi Kristian Hyllestad,

Thank you for your feedback and cooperation.

We have tested that using the WithSectionBreak.DOC to mailmerge with our latest hotfix [Spire.Office v1.6.5],it works well.We attached the merged document(WithSectionBreakMergedResult.doc),please have a look. Could you please have a kind try with the hotfix? You can download it at http://www.e-iceblue.com/Download/download-office-for-net-now/spire-office-hv165.html.

Thanks in advance.
Have a great day.

Suvi
e-iceblue support
User avatar

Suvi.Wu
 
Posts: 154
Joined: Thu Oct 20, 2011 2:53 am

Fri Feb 03, 2012 9:31 am

Hi,

Using latest spire.office v4.1.19.4 which also is the version we've been using for the last weeks.

Still exception with documents containing "Section breaks" and previously uploaded document "WithSectionBreaks.doc". And no exception with similar document which does not contain section breaks.

Stack trace below on exception.
ved System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
ved System.Collections.Generic.Stack`1.Peek()
ved Spire.Doc.Reporting.MailMerge.b.a(ICompositeObject A_0, Stack`1 A_1)
ved Spire.Doc.Reporting.MailMerge.b.a(ICompositeObject A_0, Stack`1 A_1)
ved Spire.Doc.Reporting.MailMerge.b.a(ICompositeObject A_0)
ved Spire.Doc.Reporting.MailMerge.b.a(Body A_0, IRowsEnumerator A_1)
ved Spire.Doc.Reporting.MailMerge.a(Section A_0, IRowsEnumerator A_1)
ved Spire.Doc.Reporting.MailMerge.h(String A_0)
ved Spire.Doc.Reporting.MailMerge.ExecuteWidthNestedRegion(DataSet dataSet, List`1 commands)
ved BaseClasses.Utils.SpineWord.DocumentMailMerge2(Document document, String Aar1, String ProsjektId1, String StandardDocumentContext, String Ids, String Format, HttpResponse response) i C:\pweb\RAPP1350\ISD802\Main\Spine\SpineWord.vb:linje 617
ved BaseClasses.Utils.SpineWord.SaksdokumentMailmerge2(String DokumentNavn, String Dokument_Id, String DokumentEier, String Ids, String Format, HttpResponse response) i C:\pweb\RAPP1350\ISD802\Main\Spine\SpineWord.vb:linje 515
ved RAPP1350NS.UI.ShowProsjektSaksbehandlerStartside.RadMenu2_ItemClick(Object sender, RadMenuEventArgs e) i C:\pweb\RAPP1350\ISD802\Main\Prosjekt\ShowProsjektSaksbehandlerStartside.aspx.vb:linje 113


Kristian Hyllestad

krhyll
 
Posts: 23
Joined: Fri Nov 11, 2011 12:27 pm

Mon Feb 06, 2012 8:45 am

Hello Kristian Hyllestad,


Thanks for your feedback and so sorry for the inconvenience caused by us.


We've created a research on this problem, but we still can't reproduce it. Could you please offer your code to help us better reproduce this problem? Thanks for your understanding and cooperation.


Have a great day!

BR
Suvi
e-iceblue support
User avatar

Suvi.Wu
 
Posts: 154
Joined: Thu Oct 20, 2011 2:53 am

Return to Spire.Doc