/ Forums / Advansys Formativ / Creating Solutions with Formativ / Background Picture in Message Area

  • Creator
    Topic
  • #4098
    CLKurutz
    Participant

      Hello. I have an applet created with a form with a combo box. The combo box has room setup options. Once a room setup is selected the image for that room appears in an image box. I have figured out how to pass that image to an attachment in an email. What I would really like to do is use that image as the background picture for the message area. I can do this manually by selecting insert picture on the HTML toolbar. I have tried to record an applet with these steps but it doesn’t show the coding for the background picture.

      Any help would be appreciated. Thank you.

    • Author
      Replies
    • #7094
      Support 1a
      Participant

        Given an active HTML message view, two suggestions come to mind:

        Some suggestions…

        1) Copy the html contents into clipboard and later paste into message

        Utilities.CopyHTMLToClipboard("<HTML><BODY background=C:imagesrosebouquetbg.jpg></BODY></HTML>")
        call groupwise.focusset(fcsMessage, "")
        GroupWise.EditPaste

        2) Use the HTMLDom to update the message

        Utilities.IHTMLDocumentFromView(oDocument)

        See the Developers Guide for more details on this approach.

        Regards,

        Advansys Support

        #7096
        CLKurutz
        Participant

          Thank you for the ideas. I actually tried these and could not get it working. But, I found a way that does work. The problem is that it copies in the graphic as well as ML>. If I paste in Word, it actually shows HTML> and the graphic. I have tried many different ways to write the code but still get the ML> in the message area of GW. Here is the code:

          Utilities.CopyHTMLToClipboard(“HTML<IMG SRC=D:/CUSTOMVIEWS/ACTIVITYROOM/REGULARACTIVITY.JPG>”)

          I use the following code to paste:

          call groupwise.focusset(fcsMessage, “”)
          GroupWise.EditPaste

          Is there any way to paste without getting the words?

          Thanks again for all your help.

          quote:


          Originally posted by Support 1:
          Given an active HTML message view, two suggestions come to mind:

          Some suggestions…

          1) Copy the html contents into clipboard and later paste into message

          Utilities.CopyHTMLToClipboard("<HTML><BODY background=C:imagesrosebouquetbg.jpg></BODY></HTML>")
          call groupwise.focusset(fcsMessage, "")
          GroupWise.EditPaste

          2) Use the HTMLDom to update the message

          Utilities.IHTMLDocumentFromView(oDocument)

          See the Developers Guide for more details on this approach.

          Regards,

          Advansys Support


          #7098
          Support 1a
          Participant

            Hi,

            Engineering have suggested the following:

            Utilities.CopyHTMLToClipboard("<br><IMG src=""file:///D:/CUSTOMVIEWS/ACTIVITYROOM/REGULARACTIVITY.JPG"">")
            call groupwise.focusset(fcsMessage, "")
            GroupWise.EditPaste

            Let me know if that works for you.

            Regards,

            Advansys Support

            #7097
            CLKurutz
            Participant

              Thank you for the reply and suggestion. It worked great.

              Thanks again.

              quote:


              Originally posted by Support 1:
              Hi,

              Engineering have suggested the following:

              Utilities.CopyHTMLToClipboard("<br>[IMG]"file:///D:/CUSTOMVIEWS/ACTIVITYROOM/REGULARACTIVITY.JPG"[/IMG]")
              call groupwise.focusset(fcsMessage, "")
              GroupWise.EditPaste

              Let me know if that works for you.

              Regards,

              Advansys Support


              #7095
              Support 1a
              Participant

                That’s great news – thanks for the update.

                Regards,

                Advansys Support

              Viewing 5 replies - 1 through 5 (of 5 total)
              • You must be logged in to reply to this topic.