In EXCEL made a form template, according to the three documents are included in a page of A4 paper in the form of patterns, now I will from the database query, query out a data to fill in each document, the final print,
Problem:
1) I made in the EXCEL document template how paging replication, which means that I like fish 10 data from the database, so I want to be first in EXCEL copied 9 document template, and fill in the corresponding data,
2) I need to print, a page of A4 paper to print three documents, format must be arranged accordingly, there can be no paging errors or invalid documents,
How do I write program statements, vc + + programming language, such as has the corresponding example, thank you.