Polish report templates are stored at %PROGRAMDATA%\OctoNus Software\PolishReportTemplates\. Octonus-supplied polish reports get rewritten automatically whenever required during program updates.

Template structure

Each polish report template is an *.RTF or *.HTM file with some layout and markup, also containing certain placeholders (bookmarks in *.RTF and anchors in *.HTM). Placeholders are intended for particular measurement figures or images. As a report is generated from the template, the placeholders' values are filled in.

Measurement placeholders are initially set to N/A.

Image placeholders are initially set to some text string containing instructions for the utility that creates images. Typically these include just the image dimensions (and in case of *.HTM reports, also the file name):

*.RTF*.HTM

[Width=250;Height=500;]

[FileNamePNG=PLOT_ACTUAL_LENGTH_AXIS_ASYM.png;Width=250;Height=500;]

Other image placeholders specify multiple parameters and thus require special processing (more on that later):

*.RTF*.HTM

[Width=72;Height=72;PictureID=PROFILE_VIEW_REPORT;FontSize=120;NormalLineThickness=30;BoldLineThickness=40;AutoAspectRatio=1;Z=0;]

[PictureID=POLISH_SIDES_REPORT;PavilionView=1;PictureType=0;FontSize=125;FileNamePNG=Polish_Angles_Report_Pav_Angles.png;Width=400;Height=1000;]

There is one special placeholder called GENERAL_PROPERTIES which must be present in all templates. Unlike other placeholders, it is not included at all in the resulting report. It contains meta information concerning the template. Below is an example of its content:

[ReportType=PolishRTF;VisibleName=Illustrated report for brilliant;CuttingType=Brilliant;Pictures=POLISH_ANGLES_REPORT_PAV_ANGLES,POLISH_ANGLES_REPORT_CRN_ANGLES]

The content of GENERAL_PROPERTIES is a string of semicolon-separated key=value pairs, enclosed in square brackets. The minimally required keys are:

KeyExample valuePossible valuesMeaning
ReportTypePolishRTFPolishRTF for *.RTF templates,
PolishHtml for *.HTM templates
Report type.
VisibleNameIllustrated report for brilliantArbitrary nameName of the report template to show in the list of available templates within HPOxygen.
CuttingTypeBrilliant
  • All for all cuts
  • Brilliant for Round brilliant
  • Cushion for Cushion
  • Radiant for ordinary Radiant
  • SquareRadiant for Square Radiant
  • FancyPrince for Princess
  • FancyRound for rounded fancies
  • FancyStepCut for step cuts
Cutting type to associate the template with.
PicturesPOLISH_ANGLES_REPORT_PAV_ANGLES,
POLISH_ANGLES_REPORT_CRN_ANGLES
Any combination of the bookmarks representing pictures (the full list can be found in the Export Report Data templates)Comma-separated list of bookmarks representing the images which require special processing (see above).

The meta information extracted from all report templates is stored temporarily in the file called TemplatesCache.ini. This is an automatically generated file which should never be edited manually.

Creating custom templates

You can make your own report templates by altering the existing ones. To do so, follow these steps:

  1. Make a copy of one of the standard templates, rename the copied file, and place it to the same folder (%PROGRAMDATA%\OctoNus Software\PolishReportTemplates\).
  2. Edit the new template in the following manner:
    1. Remove the measurement figures and images you don't need.
    2. If needed, add more measurements and images by copying them from other templates or writing from scratch.
    3. Rearrange the material the way you need it.
    4. Make sure the GENERAL_PROPERTIES placeholder remains in the document, and change its value as follows:
      1. Edit VisibleName=<value> to the new template name of your choice.
      2. Edit CuttingType=<value> to include the cutting type(s) you need.
      3. Make sure to keep the semicolon separators between the key=value pairs, and the enclosing square brackets.
      *.RTF*.HTM

    5. Save the new template.
  3. Restart HPOxygen.

Alternatively, create a template from scratch as follows:

  1. Create an empty *.RTF or *.HTM file and place it to the polish report templates folder (%PROGRAMDATA%\OctoNus Software\PolishReportTemplates\).
  2. Edit the new template in the following manner:
    1. Copy the measurement figures and images you need from the existing templates into your document.
    2. Arrange the material the way you need it.
    3. Copy the GENERAL_PROPERTIES placeholder (a bookmark in case of *.RTF or an anchor in case of *.HTM) from an existing template into your document, and change its value as follows:
      1. Edit VisibleName=<value> to the new template name of your choice.
      2. Edit CuttingType=<value> to include the cutting type(s) you need.
      3. Make sure to keep the semicolon separators between the key=value pairs, and the enclosing square brackets.
    4. Save the new template.
  3. Restart HPOxygen.

If the GENERAL_PROPERTIES placeholder is missing, the report template would be invalid and not visible in the list of options.

If the template is valid, it will appear in the Polish report selection window when the appropriate cutting type is selected. For example, if CuttingType in the template's GENERAL_PROPERTIES is set to Brilliant, the report will appear in the list whenever Brilliant is chosen in the cutting type selector at the top of the window:

  • No labels
Write a comment...