VentureFree
Well-known member
- Joined
- Jan 9, 2008
- Messages
- 54
- Programming Experience
- 5-10
I'm writing a program which will be printing a bunch of individual pages, all of which have a common content except for 4 lines, which have personalized info (name, address, etc...). Those 4 lines will be very precisely placed upon the page before printing. What I would like to do is have a Word document that contains the common parts, and programmatically add the personalized info at run time to be printed. That way if the common content needed to be changed in the future, simply changing the Word document would suffice, and no code changes would be needed.
I've never actually had to print anything from code, which is quite amazing considering how long I've been coding (it just never came up). That means that I'm having difficulty trying to figure out how to do what I am wanting to do. I think I can handle the 4 lines without much difficulty, but how do I load the Word document, preserving all formatting, font, spacing, etc... and either add it to the internal page with my 4 lines already on it, or add my 4 lines to it before printing?
I've never actually had to print anything from code, which is quite amazing considering how long I've been coding (it just never came up). That means that I'm having difficulty trying to figure out how to do what I am wanting to do. I think I can handle the 4 lines without much difficulty, but how do I load the Word document, preserving all formatting, font, spacing, etc... and either add it to the internal page with my 4 lines already on it, or add my 4 lines to it before printing?