Jump to content

Exporting to PDF


The Missing Man
 Share

This topic is 2892 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 2892 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.