Table of Contents
VisibleElementIds Property

Gets or sets a list of visible element Ids.

Syntax
 public String VisibleElementIds { get; set; }
Remarks

Use this property to render a portion of the page instead of the full page. For example, with the following HTML file:

HTML
<html>
    <body>
        ....header....
        <div id="contents">
            ....main contents.....
        </div>
        ....footer....
    </body>
</html>
If you only wish to render the main contents to PDF, you can set VisibleElementIds to "contents" so that only the element whose id property is set to "contents" will be rendered (in this case a DIV element).

To specify multiple visible element Ids, use ";" to separate them. For example, "menu;contents;".

If you use ASP.NET, be aware that this property takes the client side DHTML element ID, not the ASP.NET server side control ID. Usually you can use the server control's ClientID property to get the corresponding client side DHTML element ID.

InvisibleElementIds can be used together with this property to explicitly hides certain elements in the "visible" area.

This property is automatically cleared after each conversion.

See Also