Solved

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

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lotus notes VB code 4 212
Lotus Domino Server 9 4 98
Permanent Lotus Notes Connection for all users in a Domino Domain 15 110
Domino Website - Redirection 12 99
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…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 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