Jump to content

Output pdf of only some records

Recommended Posts

I am working on a job that has 4 versions of a newsletter each week. I am able output so that each version gets it own pdf output labeled based on "IssueID" field - Issue 1.pdf, Issue 2.pdf, Issue 3.pdf, Issue SE.pdf.


For this merge I only want Issue 1.pdf output. Currently it puts all versions in Issue 1.pdf


I've done other merges where the output file is renamed, but this is a little different again.


Eventually, I will need to have it output other versions, too i.e. Issue 1 and Issue 2, but not Issue 3 or Issue SE.


This is what I have in a OnRecordStart:


var DateShort = FormatDate(Field("Date"), "m-dd-yy")

if (FieldChanged("Issueid") && Field("Issueid")=="I-1")

   var outputName =  DateShort + " Issue " + Field("Issueid") +" - Merge." + FusionPro.Composition.outputFormatExtension;
   Print("Changing to output file: " + outputName);



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

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.

  • Create New...