Solved

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

Posted on 2011-03-18
3
790 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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
LotusScript: Merge Data to Word File 22 104
Excel Use VBA to get user's Mac Address for their computer 5 251
List out all word 7 318
ESXCLI upgrade command 1 117
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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