Printing All Invoices

fahdfahd Member Posts: 226
Dear Experts,

I have designed one new Menu button and i have attached 2 different reports in that button.

Both of those reports are working fine but, When i am clicking on preview by taking any specific Posted invoice. it is picking up all those posted invoice. not the particular one which gave print out.

Instead of previewing one page it is taking all the posted invoice and generating around 300 + pages on the remaining invoices as well.

Kindly let me know how can i make that report specific on one record is it happens in the by default report.

I can i filter the report by giving the number of an invoice but i was wondering if there is another way to do it just like by default print outs.

Thanks & Regards,
Fahd.

Comments

  • GRIZZLYGRIZZLY Member Posts: 127
    Try simillar code for calling your report:
    Cust.SETRANGE(Code, Rec.Code);  // Code is taken from the current record   
    WebAccessRep.SETTABLEVIEW(Cust); // WebAccessRep is your report
    WebAccessRep.RUN();
    

    All those filters you assigned, would be transfered to the report.
    Sincerely yours, GRIZZLY
    Follow my blog at http://x-dynamics.blogspot.com
Sign In or Register to comment.