Solved

Saving a form with OLE control added two attachments with prefix STG and EXT

Posted on 2011-03-18
3
784 Views
Last Modified: 2013-12-18
Hi,

I copied and pasted the default Message form and renamed it to MyForm. On MyForm, I added two objects: a Field called Played and a customer OLE control (Test.OCX). On MyForm’s PostOpen event, I updated Played to “1”, and called Save to save the current document. Looking at the inbox again, the size of the message increase, and when I open the message via iNotes, I can see two more attachments, with prefix STG and EXT, were added. How can this be avoided?

I am using Domino8.5.1 and Lotus Notes 8.5.1. I made sure the Database option “Display images after loading” is not enabled.

Any help will be appreciated.

Thanks.
0
Comment
Question by:mwong2
  • 2
3 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 35171399
You didn't supply code, so I'd have to guess. If all you want is to update 1 field, save the back-end document (NotesDocument.Save) and not the front-end.

An example:

Set doc= source.Document
doc.Played= "1"
doc.Save True,False,True
0
 

Author Comment

by:mwong2
ID: 35183100
Yes, this is what I put in the form's PostOpen event.

Set doc= source.Document
doc.Played= "1"
doc.Save True,False,True

However, after doc is saved, the size of the message increased. Opening the same email message via iNote shows two new attachments: STG20689 and EXT57683. I tried to open them using a binary editior, it looks to me Notes is trying to save the OCX control in binary format in STG20689.

 If I remove the custom OCX control from the form, replace the mail template, and open the message in Lotus Notes again, the size of the message stays the same.

Is there any way I can prevent Notes saving the OCX control as a binary attachment?

Thanks!

0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 500 total points
ID: 35185718
Could you try with the code in the QueryClose event?

If that doesn't work, the next idea would be to open the document a second time, but via a set of different objects (a different NotesDatabase object, NotesDocument.GetDocumentById, then Save that document instead of the current one)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 48
Named range not carried over 10 62
scoreUp challenge 14 57
firstChar challenge 13 110
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now