<body scroll="no">when I created an actual HTML file to navigate to. Now that I'm writing directly to the document, I cannot seem to access the body to try to set scroll="no".
><html> > <head> > </head> > <body scroll="no"> > </body> ></html> >>
public oForm oForm = newobject('HTMLViewerForm') oForm.show with oForm.htmlviewer .navigate2("about:blank") .document.write('<html><body scroll="no"></body></html>') .document.body.innerHTML = '<b>This is new content</b>' endwith define class HTMLViewerForm as form height = 500 width = 800 add object htmlviewer as olecontrol with ; height = 500, width = 800, visible = .t., ; oleclass = 'Shell.Explorer' procedure htmlviewer.refresh nodefault endproc enddefineOr:
public oForm lcFile = fullpath("base.htm") && your HTML content oForm = newobject('HTMLViewerForm') oForm.show with oForm.htmlviewer .navigate2(m.lcFile) do while .readyState != 4 enddo .document.body.InnerHTML = "<b>This is new HTM</b>" endwith define class HTMLViewerForm as form height = 500 width = 800 add object htmlviewer as olecontrol with ; height = 500, width = 800, visible = .t., ; oleclass = 'Shell.Explorer' procedure htmlviewer.refresh nodefault endproc enddefineCetin