Skip to main content

Placeholder

Version: 10.0

Placeholder

The Placeholder element is used for keeping the location on the page that will later be filled in at runtime with a particular Page Element. Placeholders can be added to any sections of the report (i.e. Header, Detail or Footer). The Placeholder report element appears as a rectangle with dotted borders and two diagonal lines joining the corners of the rectangle. The Placeholder element is useful for instance if you wanted to place a dynamic image or barcode on the PDF.  In this case you could just place a Placeholder on the page at the location that the dynamic Image or barcode needed to be then at runtime you could fill in the placeholder using its LaidOut event.

In order to add a Placeholder, select the Placeholder element under the Toolbox, drag and drop it at the desired location on the page. The Placeholder can be resized or repositioned using the mouse, manually changing the values in the properties window or by changing the values directly in the source.

Properties​

The Placeholder element has the following properties:

PropertiesDescription
IdA value indicating the programmatic identifier of the Placeholder.
HeightA value indicating the height of the Placeholder.
WidthA value indicating the width of the Placeholder.
XA value indicating the X coordinate of the Placeholder.
YA value indicating the Y coordinate of the Placeholder.