We are using Microsoft word 9.0 object library with VB 6.0 to create and print letters.
In the first part,
1) We create word templates (.dot files) with bookmarks.
2) We open these templates in our VB program using the word objects.
3) We set the values of bookmarks and save the document with .doc extension.
This part is working fine.
In the second part,
1) We open the document saved above, and print it using, once again, word objects.
Now, here, most of the times, the document prints fine, but once in a while, what's happening
is that it prints the document all messed up, kind of like when the paper gets stuck in the printer
and all the text in a line gets printed at the same spot leaving a black square. When we print the same
document again, it prints fine.