HomeGuidesRecipesAPI
HomeGuidesAPILog In

Template - Power Point

SmartIQ supports Microsoft PowerPoint Presentation as an output. Text and images can be inserted, removed or repeated within a slide. This feature is designed for creating dynamic PowerPoint presentations with minimal effort.

Complex PowerPoint templates may be slow to generate. If you are experiencing slow generation times, consider instead using a Word document as the template type.

How to insert a bookmark/placeholder into PowerPoint

A tag is a plain text placeholder name wrapped in double curly braces, {{text/image name}}. For example: {{FirstName}} {{LastName}} with a user ID of {{IDNumber}}. The new tags can be used in place of bookmarks. Tags can also be used for ‘close gaps’ and ‘repeating tags’.

To create a close gap or a repeat tag range, begin the tag name with ‘#’ at the beginning of the name and close it with the same name at the end (prefixed with a forward slash '/'). For example: {{# Points Repeat}} some normal text {{points}} more normal document text {{/ Points Repeat}}. Here, the text between {{#Points Repeat}} and {{/ Points Repeat}} will be repeated for every values for {{points}}.

To bookmark a slide

  1. Go to the View tab and click ‘Macros’.

The Macros box will pop up.

  1. Enter the name in the Macro Name: text box (for example NameSlide) and click the Create button.

The Microsoft Visual Basic Application will pop up.

  1. Type the following code in the given text box.
Dim currentView as Long
currentView = ActiveWindow.ViewType
If currentView = ppViewSlide Or currentView = ppViewNormal Then
  slideName = InputBox("Side Name", "Enter the slide name", ActiveWindow.Selection.SlideRange.Name)
  ActiveWindow.Selection.SlideRange.Name = slideName
Else
  MsgBox "Please selected a slide first", vbInformation
End If

  1. Go to the Run tab and click Run Sub/UserForm.

The Enter the slide name box will pop up.

  1. Enter the slide name in the Slide Name text box (for example SlideName) and click the OK button.

Close the Microsoft Visual Basic Application and close the PowerPoint template.

How to create repeating placeholders

  1. To create a close gap or a repeat tag range, begin the tag name with a # at the beginning of the name and close it with the same name at the end (prefixed with a forward slash '/'). For example: {{#Points Repeat}} some normal text {{points}} more normal document text {{/Points Repeat}}. Here, the text between {{#Points Repeat}} and {{/Points Repeat}} will be repeated for every values for '{{points}}'.

The placeholder will be available when the PowerPoint is uploaded in design. {{#Points Repeat}} is the repeating placeholder and {{points}} is the placeholder included inside the repeating placeholder. SlideName is the placeholder denoting the slide.

  1. Map the placeholder to the required locations and specify the repeating placeholder under the properties tab of the section/page.

📘

Note

The above example shows repeating points in the PowerPoint file. For repeating the slides of the PowerPoint file, replace {{#Points Repeat}} with SlideName placeholder in the Placeholder(s): textbox.

How to publish a PowerPoint Project

  1. Open the project from Manage and click the ‘Publish’ button.

  1. Select the folder to which the project is to be published. Specify the output format required from the Presentation tab.

  1. Click the Save button.

Produce - How to run a PowerPoint project in Produce

  1. Open the project and enter the values.

  1. Click ‘Next’ and then ‘Generate Document’.

  2. Open the generated document. From the above example

If the placeholder mention in the repeating placeholder section in design was {{#Points Repeat}} then the output will be a PowerPoint file with 1 slide and 4 rows.

If the placeholder mention in the repeating placeholder section in design was SlideName then the output will be a PowerPoint file with 4 slides and each with 1 row.

📘

Note

You can also use the NameSlide routine to name slides and then include/exclude the entire slide instead of just content within a slide.

Keywords: Repeating Section PowerPoint Placeholders