Is there a way to intercept print jobs on a local Windows XP machine?

It is preferable to use a scripting language such as Perl or Python, but if I need to compile the route, let it be so.

In fact, I want to make an addition to my merger system. Currently, the software we use has a rather limited selection of merge fields, which it exports, but if we could somehow include the results of database queries in letters, we could do much more (and, unfortunately, Word doesn’t provides sufficient flexibility when using database queries for this). The system we use automatically sends its letters to the default printer (which is a peer-to-peer printer, without a print server). I would like to create a program that could act as an intermediary for this. Ideally, he would detect when the print job is running, grab the sent document, open it,insert additional data from your own queries, and then send the new version to the printer.

I have two questions

  1. Is it possible, if so, where to start?
  2. Is it possible that one person can finish in a reasonable amount of time? Keep in mind that I am not a programmer by profession, I am type sysadmin person = P
+3
source share
2 answers

Honestly, this is an incredibly difficult way. Perhaps try creating a virtual printer that processes the data and redirects it to a real printer. See if I can find anything for you.

+3
source

Word, , Visual Basic. , . Perl Python VB, .py/.pl .vbs. OpenOffice, Python.

0

Source: https://habr.com/ru/post/1718191/


All Articles