Computer Hope

Software => Computer programming => Topic started by: DoctorJellybean on June 21, 2009, 12:56:54 PM

Title: I need to print a Word document from my application
Post by: DoctorJellybean on June 21, 2009, 12:56:54 PM
I have achieved the most important goal, which was to populate some Word documents with data from my application. I managed this with the aid of Bookmarks in Word, and the OLEServer in Delphi.

Now what I would like as the topping on the cake, is being able to print the same document from the program. From what I understand, the program connects to the document to fill the data in, it doesn't actually load the doc. Therefore, is there a way to connect to the doc file and print it? Ideally I would like the printer dialog displayed so that I can select the printer, pages, etc.

I'm using Delphi 2009.

Thanks in advance.