WebPreview Script

Build 1501 on 14/Nov/2017  This topic last edited on: 9/May/2012, at 13:05

Description

Opens Web preview in the WYSIWYG zone, on specified publishing destination.

Typically assigned to a menu option, together with WYSIWYG Script.

Syntax

WebPreview(strDest)

strDest

name of the publishing destination.

Code

  <ShellCommand(CanExecute:="Ena_IsEditingText", IsChecked:="Chk_IsWebPreview")> _

  Public Sub WebPreview(ByVal strDest)

    ' opens Web preview in the WYSIWYG zone, on specified strDest

    If strDest = "" Then Return

    If TxtDesigner.PreviewType = ITxtDesigner.ePreviewType.Just Then

      TxtDesigner.PreviewType = ITxtDesigner.ePreviewType.Web

      TxtDesigner.WebPreview.SelectPubDest(strDest)

    Else

      TxtDesigner.PreviewType = ITxtDesigner.ePreviewType.Just

    End If

  End Sub