Solved

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

Posted on 2003-11-26
2
217 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 50 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

717 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