Jump to content

Export PDF using FieldName


Reid

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

Recommended Posts

Reid

1. Make a calc field = "PDF Export For" & Get ( CurrentDate )

2. In the 'Save records as PDF' script step.

Under the 'Specify output file' option you can name the file with your calc field and save it to a location of your choosing.

Vincent

Link to comment
Share on other sites

Reid

1. Make a calc field = "PDF Export For" & Get ( CurrentDate )

2. In the 'Save records as PDF' script step.

Under the 'Specify output file' option you can name the file and save it to a location of your choosing

Vincent

How do I name the file using the calc field I just created? All I see is "Output File Path List" and then pick a filename.

Link to comment
Share on other sites

Use a script variable, e.g.:

Set Variable [ $myPath; Value:Get (DesktopPath) & "/" & MyTable::MyField & ".pdf" ]

Save Records as PDF [ File Name: “$myPath”; Records being browsed ]

It says it is an invalid Get Function. This is what I put in for the $myPath variable

Get (filewin:/C:/Folder/Folder/Folder) &"/" & MFSDItems::SavePDFfileTitle &".pdf"

Link to comment
Share on other sites

Get (DesktopPath) is a valid function. If you want another location, try:

"filewin:/C:/Folder/Folder/Folder/" & MFSDItems::SavePDFfileTitle & ".pdf" 

Thanks...this works but now the PDF can't be created because my field MFSDItems::SavePDFfileTitle has a date in it (i.e. 2/17/2011)

I'm trying to create a calculation field that equals my date field with the intention to change the format. Is there a way to change the "/" to "-"?

A calculation like MFSDItems:date FormatChange(**-**-****)

Link to comment
Share on other sites

Use a script variable, e.g.:

Set Variable [ $myPath; Value:Get (DesktopPath) & "/" & MyTable::MyField & ".pdf" ]

Save Records as PDF [ File Name: “$myPath”; Records being browsed ]

No calculation field is required.

The slash is not required; it is part of get( desktopPath).

Set Variable [ $myPath; Value:Get (DesktopPath) & MyTable::MyField & ".pdf" ]

Link to comment
Share on other sites

This topic is 4809 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
×
×
  • Create New...

Important Information

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