Jump to content
Sign in to follow this  
The Missing Man

Exporting to PDF

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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
allow me to create a custom name for the pdf.

 

What should the custom name be?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    hergli 
×
×
  • Create New...

Important Information

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