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
I finally found out!
use windows image and fax viewer.
rundll32 shimgvw.dll ImageView_PrintTo /pt xxx.png "printer name"