Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

11 Experts available now in Live!

Get 1:1 Help Now