Jump to content

Pierhouse

Registered Users - Approved
  • Posts

    18
  • Joined

Posts posted by Pierhouse

  1. Hi Chad

     

    Create a Rule of type Callback and select OnNewOuputFile. This rule will then be called when a new output file is about to be opened.

     

    Use the below code within the rule to create the output filename using the input file name, stripping off the extention and adding .pdf.

     

    PDFName = FusionPro.Composition.inputFileName;

    FullName = PDFName.split(".");

    FileName = FullName[0];

    FileExt = FullName[1];

    FusionPro.Composition.outputFileName = FileName + ".pdf"

     

    Hope this helps

     

    G

  2. When creating my output PDF file I am wanting the output file name to be based upon the name of the seletcted input data file.

     

    For example:

     

    Selected data input file name: Std4_0310.txt

     

    Desired PDF output file name: Std4_0310.pdf

     

    I have tried to acheive this using the following OnNewOtputFile rule:

     

    FusionPro.Composition.OutputFileName = FusionPro.Composition.InputFileName

     

    The rule validates ok but I'm obviously doing something wrong as it still creates the output file with the name designated within the Compose Template-Output-Ouput Filename section.

     

    Any ideas would be greatly appreciated.

     

    G

    :)

×
×
  • Create New...