We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Empty datareader

Hi Aspose Team,
I’ve notice that when I do a mailmerge with an empty data reader, I receive a blank document.

SqlDataReader reader = new SqlDataReader()
doc.MailMerge.Execute(reader) //return a blank doc : "/r"

Is there a way to avoid receiving a blank docume

Thank you for asking this.
What do you mean under avoiding receiving empty document? Maybe if data reader is empty you shouldn’t produce the document at all.