Dear sir, Pls let me know in which method Name we can identify whether the Invoice is printed or Not? Rgds, Arun
Hi, 1.Create an udf at voucher level 2.use the new system event available afer release 3.0 at report levele defintion i.e : ON : AFTER PRINT ex : [Report : Report name to be printed] On : After Print : NOT $$InPreviewMode : CALL : Update Sales Printed Flag
If the invoice is already printed. I want to allow user to preview the invoice but restrict actual print. Please guide.
What actiion should be taken in the function Update Sales Printed Flag if test for printed flag is positive. I think this is not going to solve the issue. Can you paste the code you have tested. Thanks Regards Raju Bhanushali
Dear Raju, 1. Add a logical udf at the voucher level 2. After printing, update the udf value. [To achive this, use the event After Print. Refer to the TDL Referent manual] 3. Based on the udf value you can judge whether voucher is printed or not. Rgds, Arun
That is fine. If the voucher is already printed. Hence the logical udf at voucher level will be true. Now I can disable the print altogether by making the print button inactive if the logical udf is true. But my question here is I want to allow user to preview but I want to restrict the print from the preview. Either by pressing Alt+P or clicking on the Print link on the preview form. Thanks Regards Raju Bhanushali