C # - popping up my application when printing was done using test driver

I am working on an assignment to write a virtual printer with C # and NTDDK.

I created a test printer driver and I can print .ps documents (redirected to C: \ test \ test.ps always) using it. But now I need to write a small application that will display a message with the message “Print done” using C #, but I can’t figure out how to do this?

Can someone help me with this?

Thanks in advance!

+3
source share
1 answer

Use the endprint event ... something like, in put constructor code:

/////////////// something.EndPrint + = new PrintEventHandler (finalclass); //////////////

/, put:

private void finalclass ( , PrintEventArgs e)

{

MessageBox.Show( "wazaaaaaaaaaaaaaaaaa" );

}

//////// , ... , , . , googl event endprint, 100% .

//// ... , , .... 1/10 :). , . ++, # , , , ++.

0

All Articles