My program need to print a curve, my solution is changing the curve into a picture, and this picture file (xxx.png) can be printed by using the default windows picture print
IrfanView is able to do this. Here's a list of command line options for this application.
The following should work:
i_view32 xxx.png /print
If you want to print to a printer other than the default printer, specify the printer name:
i_view32 xxx.png /print="PrinterName"