FMPRO-L Archives

October 2012, Week 3

FMPRO-L@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Corn Walker <[log in to unmask]>
Reply To:
FileMaker Pro Discussions <[log in to unmask]>
Date:
Sat, 20 Oct 2012 22:38:02 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
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/

ATOM RSS1 RSS2