FYI, we have now applied v2.5.3 in production. Previous issue with margin problems for tables is solved.
Problems in v2.5.3 related to actual text in mergefields seems to be:
- single LF needs to be changed to CR in mergfields (multiline textfields)
- " %" replaced by "%" (issue shown on picture)
In addition to problems above, this version always throws system.exception from line:
document.MailMerge.ExecuteWidthNestedRegion(ds, listRelations)
Stacktrace below:
ved Spire.Doc.Reporting.MailMerge.ᜁ.ᜀ(BodyRegionCollection A_0)
ved Spire.Doc.Reporting.MailMerge.ᜁ.ᜀ(Body A_0, IRowsEnumerator A_1)
ved Spire.Doc.Reporting.MailMerge.ᜀ(Section A_0, IRowsEnumerator A_1)
ved Spire.Doc.Reporting.MailMerge.ᜇ(String A_0)
ved Spire.Doc.Reporting.MailMerge.ExecuteWidthNestedRegion(DataSet dataSet, List`1 commands)
ved ToPDF.Form1.button1_Click(Object sender, EventArgs e) i C:\Program Files (x86)\e-iceblue\Spire.Office\Demos\DocDemos\VB\WinForms\05_Convertors\ToPDF\Form1.vb:linje 129
- Code: Select all
Dim ds As New DataSet
Dim xmlFilename As String = cDir + "DataSet2.xsd"
ds.ReadXmlSchema(xmlFilename)
xmlFilename = xmlFilename.Replace(".xsd", ".xml")
ds.ReadXml(xmlFilename)
Try
document.MailMerge.ExecuteWidthNestedRegion(ds, listRelations)
Catch ex As Exception
End Try
Dim outFilename As String = cDir + "Output2"
document.SaveToFile(outFilename.TrimEnd + ".doc", FileFormat.Doc)
'document.SaveToFile(outFilename.TrimEnd + ".html", FileFormat.Html)
document.SaveToFile(outFilename.TrimEnd + ".docx", FileFormat.Docx)
document.SaveToFile(outFilename.TrimEnd + ".pdf", FileFormat.PDF)
'document.SaveToFile(outFilename.TrimEnd + ".rtf", FileFormat.Rtf)
Did start today to create a test case for you could not finish it. Seems also to be difference in production for Winforms program versus Web program. Not sure whether it's mostly ENCODING issues or difference in libraries. And finally the time where flew away on finding the percentage issue described here.