Sample Usage

Example Usage for the HTML5 Viewer ActiveX


Microsoft Access HTML5 Viewer

In your accdb or mdb - Import the control onto a form from the ActiveX portion of the controls sectionon the "Design" tab in MS Access.

You can now bind the bodyHTML to a value from you data.

Switch to VBA code view

in the form load event;

Private Sub Form_Load()

    Set zBrowser = Me.zHTML5Browser2.Object
   
    zBrowser.setLicenceKey ""
    zBrowser.CSSText = "body {font-family: Arial; font-size: 12pt;} h1 { border: 2px solid red; padding: 5px; border-radius: 10px; text-shadow: 2px 2px 4px #FF0000;} " & _
        "@keyframes bounceIn {0% {transform: scale(0.1); opacity: 0;} 60% {transform: scale(1.05); opacity: 1;} 80% {transform: scale(1.0); opacity: 1;} 100% {transform: scale(0.1);opacity: 0;}}" & _
        "h3.Animated {animation: bounceIn 5s infinite;}"
       
    zBrowser.CSSHttp = False ' dont load CSS from a URL - load it from a string value
   
End Sub

Now run the form.The control databinds to "bodyHTML"; bodyHTML is the innerHTML portion of the BODY tag of the HTML document object model.