?
Solved

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

Posted on 2003-11-26
2
Medium Priority
?
218 Views
Last Modified: 2013-12-18
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.
0
Comment
Question by:koray_uygun
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
CRAK earned 200 total points
ID: 9824112
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
 

Author Comment

by:koray_uygun
ID: 9824160
Thank you very much
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question