Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 28 DEC 2012 03:24:12PM Martin Drenovac wrote:

I have a simple form with an OLE control set to about:blank & a button which on the click executes the following few lines of code:

call send_Message(invoice_message_text$, "OLE.document.open" )

call send_Message(invoice_message_text$, "OLE.document.write", body )

call send_Message(invoice_message_text$, "OLE.document.close" )

the 'body' displays perfectly inside the ole control.

I then want to re-display a new 'body'. On clicking the button, the body doubles up rather than overwriting the ole control.

What do I need to issue to make the control clear first, prior to the re-display of the new body content?

TIA


At 29 DEC 2012 04:29AM Richard Bright wrote:

Can you do it this way -

Stat = Set_Property( MyOLEControl,'Document.Body.InnerHtml',body)

where Body = Html page content

Richard


At 29 DEC 2012 05:10PM Martin Drenovac wrote:

morning Richard - well that works.

I'm sure I've had instances of where that blows OI up, & so I changed.

However, all good now - cheers and Happy New Year mate..


At 30 DEC 2012 12:20AM Richard Bright wrote:

Happy New Year to you and yours from right down under.

Maybe others have smarter, better or alternative suggestions?

Cheers from Middle Earth….. and we have at least 2 committed to Nashville Revelation Conference; whoopee!

Richard

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/0513ce10e803c9e9e209423ce.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1