Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-03-18
3
Medium Priority
?
806 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
[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
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 2000 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
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.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

610 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