How Delphi intercepts with the printing documents

Asked By 20 points N/A Posted on -
qa-featured

I am running Windows XP Professional with Delphi Pro. I want to know the connection between Delphi and my printing documents. I created a message handler for the INIT_DIALOG handler but it failed. My question is, should I use the dialog command to print or just simply print the documents?

 

Regards,

James Yorath

SHARE
Answered By 0 points N/A #132853

How Delphi intercepts with the printing documents

qa-featured

The following are some details that will enlighten you about the delphi intercept printing documents:

  • You can be able to print a document to the virtual printer from any application.
  • The virtual printer will intercept the print job and the save every printed page as an EMF file.
  • After that, the printer will convert the EMF file into an output format that you have specified. Note that all files are saved in the user directory that is active currently temporarily.
  • The virtual printer will then create an INI file together with the print job information as well as paths to generate those files.
  • And then the printer will send the path of the INI file to a application that you have specified either using command line transfer mode, WM_COPYDATA transfer mode or Named pipe transfer mode.
  • After the application has received the INI file and parsed them, you can proceed with any final actions.

Regards,

Carl

 

Login/Register to Answer

Related Questions