SaveFileAsTemplateTool

Tool

You can refer to this tool in any formula, macro, module, or other script in Blockpad. You can use either its name or its full path:

  • To refer to it by name, use SaveFileAsTemplateTool (make sure the library Library.Tools.File is included with Include Libaries)
  • To refer to it by its full path, use Library.Tools.File.SaveFileAsTemplateTool

 

See also:


When you save a file as a template, you can then choose the template whenever creating a new file.

Templates are great for when you have a custom header that you like to reuse, or if you have style rules with all of the formatting you want.

Save a file as a template:
  1. Have your file ready.
  2. Select File>Save As Template in the toolbar.
  3. Type in the name for the template.
  4. Click OK.
Use a template for a new file:
  1. Select File>New in the toolbar.
  2. Select the template you wish to use.
Possible problems saving as template

If a file has external references, it cannot be saved as a template.

External references typically come from image files that are not embedded in the document (for example, an image used in the header). If images are embedded instead of externally referenced, then the file can be saved as a template, but only if all external references are deleted.

Check for external references:
  1. Select File>External References in the toolbar.
  2. Check to see if any external references are listed.
  3. Close the window.
Fix external reference template problem:
  • Double click on the image in the file.
  • Check the box next to Embed in file.
  • Click OK.
  • Repeat for every image in the file.
  • Select File>External References in the toolbar.
  • Remove every external reference.
    • Select the reference and click the Remove button.
  • Close the external references window.
  • Follow directions above to save as template.