1. Edi Anaya
  2. PowerBuilder
  3. Tuesday, 19 December 2023 08:49 AM UTC

Good morning,

I'm using a OLE Web Browser as a E-mail template, this email is a HTML page, and i can modify manu properties as the size, font, Bold, Italic, Underline, Align, etc.. of my Template.

 

 

Can i reproduce the same is the new WebBroser object ?

How can i do it ?

 

Greetings,

Edi

 

Accepted Answer
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 19 December 2023 10:39 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi.

Webbrowser control isn't an editable control. It can show and navigate you to web pages. You cannot edit html pages with that control.

Andreas.

Comment
  1. Edi Anaya
  2. Tuesday, 19 December 2023 11:31 AM UTC
Is there a native control or functionality that can do the work? I'm asking because OLE WebBrowser is a third party library (.dll) i we want to change that and start using native tools.



  1. Helpful
  1. Edi Anaya
  2. Tuesday, 19 December 2023 11:34 AM UTC
Because in the oleWebBrowser with can set



this.Object.Document.ExecCommand(as_Command, False, as_Value)

where as_command could be (Bold,Italic,FontSize,..) all properties that can be changed.

  1. Helpful
  1. Andreas Mykonios
  2. Tuesday, 19 December 2023 11:36 AM UTC
In powerbuilder you can use richtextedit control which can produce htlm. Of course depending on what you want to achieve the result may good enough or not.

Andreas.
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.