The Missing Man Posted January 2, 2015 Posted January 2, 2015 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
comment Posted January 2, 2015 Posted January 2, 2015 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.
The Missing Man Posted January 2, 2015 Author Posted January 2, 2015 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
comment Posted January 2, 2015 Posted January 2, 2015 allow me to create a custom name for the pdf. What should the custom name be?
The Missing Man Posted January 2, 2015 Author Posted January 2, 2015 I got it figured out. My pdf works fine now. Thanks again for your help earlier.
Recommended Posts
This topic is 3681 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now