>But now when I click on the button,;
>At the line nretval=PrintWindow....
Okay, some progress...try this now in command window:
cJobName = "Bon Matin"
DECLARE INTEGER PrintWindow IN DibApi32 ;
INTEGER HWnd, ;
INTEGER fPrintArea, ;
INTEGER fPrintOpt, ;
INTEGER wxScale, ;
INTEGER wyScale, ;
STRING @ szJobName
nRetVal = PrintWindow(3,1,1,0,0,@cJobName)
and see what happens, do you get past the error?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.