On 20 Oct 2012, at 10:26 PM, Jay Erlebacher wrote:
> OK Everyone...
>
> Once again, I need to export formatted reports in PDF format, each with a filename that contains the patient number, the date of the report, and the type of report (echo).
>
> I've converted the file to FMP12 (via FMP8, since once cannot import FMP6 files directly into FMP12).
>
> Unless I am missing something, the Save Records as PDF script step does not allow me to give the exported PDF a unique file name.
> I can export PDFs to a folder, but not individually with unique file names governed by a calculated field (iePatient no,date,echo).
> I can give a PDF a unique Title derived from a calculated field, but the filename is always the same. If I create a multipage PDF, the title is that of the first report.
>
> If I could give each pdf a unique file name that could be associated with the patient number and date in a separate table, that would be fine too.
>
> I am really stuck here,
> Any suggestions?
Set Variable [$filePath; Value:"file:" & YourTable::PatientNumber & "_" & GetAsDate( Get( CurrentHostTimestamp ) )]
In the script step that saves the records as PDF, instead of putting the file name in, put in the $filePath variable.
Cheers,
-corn
Cornelius Walker
The Proof Group
http://proofgroup.com/
|