Hello,

I have written a piece of programming that opens, checks, prints and
closes Word documents. I use TDelphi 6 and Word 2003 (Word2000.pas)
Everything works fine, except for one thing.
When i open a document, i need to set the bottom margin from 2.5 to 1.5
I do not know if this is the part of the problem, but my document gets
a bottom margin of 0.05cm.
The printer i use has a bottom margin of 0.43 cm

When i print the document (on the background) i get a message (in the
background) from Word, saying that there is some part of the page
that cannot be printed, because it is outside the printing area.

I go as work as follows:

1) Open a document and fill the fields
   Print it and close it
2) I create an empty document.
   Set the page to Landscape
   Set text in 100pt and print it
   Close the empty document
3) Open the first of the documents i need to print.
   Number of documents to print is not set, can vary
   I set a bitmap in a table and some text below it
     (For setting the bitmap in the table, i need to set my 
      bottommargin to 1.5, otherwise i might get an extra page, which 
      i do not want.)
   At the bottom of the document, i print 2 bitmap files.
   I Print and close the document and open the next document.
4) If all documents are printed, i do step 2
5) Step 3 again, but this time, i print some extra text at the top
   of the page.
   i do not print the bitmap in the table
   At the end, i do print the 2 bitmaps and put some extra text in
   between them.
   At this stage, the margin at the bottom is 0,05cm.
   There is no spot where i set the margin to 0,05cm.

Extra info.
Word 2003 can not be reinstalled, because it is done with an MSI file
on every computer on our company. Which is not in my hands.
My faith in Word 2003 is not so good anymore, because of all the
problems i have come across. This is just the next in a long line of
things that Word 2003 does wrong.
On the other hand, not all problems are because of Word 2003.
I make mistakes as well of course :)

My Question:
Is there a way to know if this message pops up?
Of course, without the user knowing about this :)

PS: i will try to find out how to set the bottom margin other then
0,05cm (it should not be like that). But i would still like to know
how i can see if a popup is active in Word.

TIA
Marco

Reply via email to