Search for the template in the specified directory



  • The template directory is as follows. There are 2 templates named template1 in different folders. Can I find template1 in the specified directory (FolderA) and generate a PDF?

    folderA/subfolder1/ subfolder2/subfolder3/template1
    folderB/subfolder1/ subfolder2/subfolder3/template1



  • I'm not sure if I understand the question.
    However, if you mean you want to specify in the rendering request the full path of the template, then yes, you can do it like this.

    {
      "template": { 
          "name": "/folderA/subfolder1/subfolder2/subfolder3/template1" 
      },
      "data": {}
    }
    

Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.