PDA

View Full Version : Printer specification


markweix
February 4, 2008, 03:25:19
Hi,
We are now implementing the branch system for the bank, I need to find
the sample of how to do the text searching & replacing for word document
to achieve mailmerge function, after the mailmerge, I need to print out the
result word document to the printer of user's own branch, could you kindly
advise me that,
1. Where to get the sample code for text searching and replacing of word.doc
2. How to specify the target printer when doing the printing job?

Thanks.

Cheers
Mark Wei

Björn Meyer
February 5, 2008, 09:43:13
Hello Mark

1. What exactly do you want to know here. The find and replace approach is quite simple. Just use the Find method to search for a specific string and replace it using the Selection.Text property.

2. The printer is specified through the .NET PrintDocument that can be passed to the Print method of TX Text Control.