I have version 4.2.0.60 and office 2003 in Spanish.
And I need to generate mailing labels from an array of values, but I get the following exception when I execute
document.MailMerge.Execute(fields, values);
System.NullReferenceException was unhandled by user code
Message="Referencia a objeto no establecida como instancia de un objeto."
Source="Syncfusion.DocIO.Base"
StackTrace:
en Syncfusion.DocIO.DLS.MailMerge.ExecuteForParagraphs(IWParagraphCollection paragraphs, IRowsEnumerator rowsEnum)
en Syncfusion.DocIO.DLS.MailMerge.ExecuteForTable(IWTable table, IRowsEnumerator rowsEnum)
en Syncfusion.DocIO.DLS.MailMerge.ExecuteForParagraphs(IWParagraphCollection paragraphs, IRowsEnumerator rowsEnum)
en Syncfusion.DocIO.DLS.MailMerge.ExecuteForSection(IWSection sec, IRowsEnumerator rowsEnum)
en Syncfusion.DocIO.DLS.MailMerge.Execute(String[] fieldNames, String[] fieldValues)
en Listados_GeneraEtiquetas.btGenerar_Click(Object sender, EventArgs e) en c:\Projects\Alava\Listados\GeneraEtiquetas.aspx.cs:línea 76
en System.Web.UI.WebControls.Button.OnClick(EventArgs e)
en System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
en System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
en System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
en System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I have also found this error when tring to generate a report with an image in the header
Thanks in advance
Miguel
Labels.zip