See also
Total # of Report FAQ #7973
>I don't know if i told you the right syntax but anyway i'll try to move those lines :) by the way it worked fine till the application was moved under win 2003 server. Thank You anyway for your help ! I will let you know
>>Aha! You have used the wrong syntax, I don't know if that will cause this behavior.
>>lcPrinter=getprinter()
>>Set printer to name (lcPrinter)
>>However, in this case I think you must move these lines
>>report form Myreport to file TxtFileName nodialog
>>lnPageno=_pageno
>>lcPrinter=getprinter()
>>Set printer to name (lcPrinter)
>>report form Myreport to printer noconsole
>>
If it's not broken, fix it until it is.
My Blog