corpse
Member
I have a single page template, say its for an employee ID, and my database has 5 records. My goal is to print off the employee IDs, and have a word document with 5 pages. Each page will be based on a template. (VB.Net by the way)
I have the template created, and have bookmarks setup to locate the text insertion points. I can create the first page very easily; goto bookmark, insert text, repeat. Although, Im stuck now that I want to create the second page.
Ideally, I would like to insert a new page based on my template. I cant create everything on the fly, as that will make using a template pointless.
EDIT:
I found a solution, although Im not very happy with it. For each record/page of the report, I create a new document based on a template and save it; and then dumb all of those pages into a master document. Its slow, but does give the power, and was easy to implement. I KNOW there is a better way - like my creating the document in memory and copy into a document via a range, but getting the right combo of code has been rather elusive.
Help and suggestions are definitely welcomed and highly recommended
I have the template created, and have bookmarks setup to locate the text insertion points. I can create the first page very easily; goto bookmark, insert text, repeat. Although, Im stuck now that I want to create the second page.
Ideally, I would like to insert a new page based on my template. I cant create everything on the fly, as that will make using a template pointless.
EDIT:
I found a solution, although Im not very happy with it. For each record/page of the report, I create a new document based on a template and save it; and then dumb all of those pages into a master document. Its slow, but does give the power, and was easy to implement. I KNOW there is a better way - like my creating the document in memory and copy into a document via a range, but getting the right combo of code has been rather elusive.
Help and suggestions are definitely welcomed and highly recommended
Last edited by a moderator: