' Otherwise the new presentation will be inaccessible
FLG.Visible = True
' Go to the Freelance outline view
Doc.ViewMode = FLG.GetEnum("ViewOutliner")
' Paste in the WP doc
Doc.ActivePage.Paste
' Go to the Freelance sorter view
Doc.ViewMode = FLG.GetEnum("ViewSorter")
PageCount = Doc.Pages.Count
If PageCount = 1 Then
' Nothing pasted?
' Print "debug: no pages created"
Else
' Last page is the empty title page - get rid of it.
Set LastPage = Doc.Pages.Item(PageCount)
LastPage.Remove
End If
' Return to draw view
Doc.ViewMode = FLG.GetEnum("ViewDraw")
' Leave Freelance running with new document active.
goto AllIsWell
HandleProblem:
On Error Goto VeryEnd
If NullSelectionFailure = True Then
MessageBox "Selezionare il testo da utilizzare prima di eseguire questa procedura.", 48, "Errore durante la creazione della presentazione"
Else
If LaunchFailure = True Then
MessageBox "Per poter eseguire questa procedura Φ necessario che Lotus Freelance Graphics 96 sia installato.", 48, "Errore durante la creazione della presentazione"