Writing to blank word doc...

WellsCarrie

Well-known member
Joined
Jul 12, 2005
Messages
95
Location
Arkansas
Programming Experience
5-10
Resolved - Writing to blank word doc...

OK, I need to write some text to a blank word document. I know how to write to a word template and how to select and change text in a previously created document.... but I'm not having any luck writing new text to a new blank document...
I am hoping you guys can send me to the right web site...for my answers.

Note. I can't use a template since the documents objects will be defined in a database.. like so:

docHeader - "This Stupid Report"
docHeader size - 16
docSub Header - "Why I hate my job..."
docSubHeaderSize - 14
docIntroParagraph - "this is all bs... and a really bad way to create reports."
docIntroParagraphSize - 12
docBodyQueries - "SELECT bsbsbs FROM bsTable WHERE bsField = 'bs'; SELECT morebs FROM morebstable where morebsField = 'bs'"
docResultsSize - 10


I have to print the docHeader through the docIntroParagraph to a COVER sheet then run the queries (writing each result set to its own table on its own sheet), then print some more fields defined for the CLOSING sheet.

Know I have no control over what the fonts, fontsizes, or basically anything is. I just have to give the user the ablity to select a report and print it to thier local printer.

I think I'm begining to hate my job....

PLEASE HELP!
 
Last edited:
Back
Top