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

Free Support Forum - aspose.com

Merge in single document

Hello,
how to merge sql request result into array of a single document and insert total section for each group of this request ?

Thanks.

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for your interest in Aspose.Words. Could you please provide me more information about your requirements? I think, in this case, you can use simple Mail Merge. Please follow this link to learn more:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/simple-mail-merge-explained.html

Best regards,

Thank for your prompt reply,

i’m working with vs2005/asp.net, sqlserver
in fact, that would like to is to have same result than a report tool with grouped sql request result, i.e. :

col1 col2 col3 col4
A xxx xxx 999
A xxx xxx 999
A xxx xxx 999
TOTAL A 999

B xxx xxx 999
B xxx xxx 999
TOTAL B 999


is it possible to do that with aspose and if yes, what is the best way ?

thank


Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. I think, you can use nested mail merge regions in order to generate such reports. You can find a simple example here:

Hope this helps. Please let me know in case of any issues, I will be glad to help you.

Best regards,