Kamis, 27 Mei 2021

Re: [MSAccessProfessionals] Display HTML content from Table in Webbrowser Control

see this demo.
open the form.
view the code behind the form.

Virus-free. www.avast.com

On Fri, May 28, 2021 at 3:16 AM Bill Mosca <wrmosca@comcast.net> wrote:

Ozair

 

Interesting idea. Often, copy and paste fails because of differently named controls. I noticed is the name of your web browser control is "WebBrowser0". Is that correct? Is the IntelliSense find it when you type "Me."?

 

Regards,

Bill Mosca

 

From: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io> On Behalf Of ozairkhalidozair
Sent: Thursday, May 27, 2021 5:42 AM
To: MSAccessProfessionals@groups.io
Subject: [MSAccessProfessionals] Display HTML content from Table in Webbrowser Control

 

[Edited Message Follows]

Hi all,

I found an interesting article and liked the idea very much.
https://www.devhut.net/2019/10/18/everything-you-never-wanted-to-know-about-the-access-webbrowser-control/

From this tutorial, I am actually interested in Dynamic Content on the Fly.

Unfortunately its not working in my file.
All I see is "Object variable or With block variable not set"
Can someone please help?
Copied Code
Private Sub Form_Current()
With Me.WebBrowser0.Object.Document
    .Open
    .Write "<HTML> <H1> hello world! </H1> </HTML>"
    .Close
End With
 
End Sub

 

System Detail

Office 2016   64 Bit
Windows 10  64 Bit 
EDIT : Not sure if it was needed but I already added Reference for "Microsoft HTML Object Library" anyway.


Best,
Ozair



--
Arnelito G. Puzon


_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#116007) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [sugeng.panjalu.access@blogger.com]

_._,_._,_

Tidak ada komentar:

Posting Komentar