While opening a doc distiction between a preview and a normal open in Lotus script

Hi,
I want to put some code in the postopen event of a document but I have to execute different code depending on if the document is being opened by previewing or the normal way. Do you know, in Lotus Script, how to get the way that the current doc is opened?

Thanks,
Koray.
koray_uygunAsked:
Who is Participating?
 
CRAKConnect With a Mentor Commented:
In PostOpen, you already have the NotesUIDocument (as "Source") available.
NotesUIDocument has a property InPreviewpane (True/False). So:

If Source.InPreviewFrame then
   ' put your code to execute in preview here
Else
   ' put your code to execute in normal mode here
End if
0
 
koray_uygunAuthor Commented:
Thank you very much
0
All Courses

From novice to tech pro — start learning today.