January 2, 201511 yr Currently when I produce an invoice I need to go to my printing layout, then do a search for my particular invoice and print. Very annoying as sometimes I forget what the invoice number is that I want to print. Here is the code: Go to Layout[“InvoicePrinting” (Invoice Line Items)] Enter Find Mode [Pause] Perform Find [] GO to Field [invoice Line Items::Todays Date] Print Setup [Restore] Print[Restore:Canon MX700 series] Go to Layout[“Project_Details” (Projects)] Exist Script [] What I want to do is simply go to related record and print, but when I try this I get what appears to be all my line items in my database on my one invoice. Here is the code: Go to Related Record [From table: "Invoice Line Items"; Using layout:"InvoicePrinting" (Invoice Line Items)] Go to Field {Invoice Line Items::Todays Date] Print Setup [Restore] Print [Restore: Canon MX700 series] Go to Layout ["Project_Details"(Projects)] Exist Script[] Any help appreciated
January 2, 201511 yr In the Go to Related Record [ ] step, select the option to Show only related records; Match current record only. This is assuming you are calling the script from the selected invoice's record. Also, your title speaks of exporting to PDF, but your script prints.
January 2, 201511 yr Author Thanks for that. I thought I had clicked those on but I guess somehow i never saved it with it turned on. With regards to the PDF component. Currently what I do is manually go from printing to saving it as a pdf. I am assuming that there is a way to condense all of this to just print as a pdf but do not know how and still allow me to create a custom name for the pdf. Any help appreciated. Thanks
January 2, 201511 yr Author I got it figured out. My pdf works fine now. Thanks again for your help earlier.
Create an account or sign in to comment