1 Reply Latest reply on Mar 12, 2013 8:23 AM by philmodjunk

    Saving as a PDF and auto file name

    RyanCourville

      Title

      Saving as a PDF and auto file name

      Post

           Hey

            

           I got a button to save as a PDF and I am trying to make it save a file name automatically.

           I want it to do DT # , customer, date

        • 1. Re: Saving as a PDF and auto file name
          philmodjunk

               Are DT #, Customer and date three fields in your table?

               Or is date the current date?

               Where will you then save that PDF file?

               See this link for the basic steps for a scripted save as PDF: Found Sets to PDF with unique file names

               Your calculation for the file name inside that Set variable step might be:

               ... & YourTable::DT # & " " & YourTable::Customer & " " & Substitute ( YourTable::Date ; "/" ; "-" ) & ".PDF" ]

               or it might be:

               ... & YourTable::DT # & " " & YourTable::Customer & " " & Substitute ( Get ( CurrentDate ) ; "/" ; "-" ) & ".PDF" ]