>Does anyone know how to render HTML contained in a memo field of a table on a report? IOW, I don't want the actual text of the HTML printed, I want to see the rendered HTML in the report.
>
>I tried putting the HTML into a General field with IE as the OLE object, the idea being that I could use an OLE object in a report to show the rendered HTML. I tried the following code:
append general HTMLNOTES data trim(NOTES) class Shell.Explorer
where HTMLNOTES is the General field and NOTES is the memo field containing HTML. However, this gives a "only insertable objects are allowed in General fields" error.
>
>You can do this with RTF text by specifying "RichText.RichTextCtrl" as the class, so I was hoping to do the same thing with HTML. I'd appreciate any ideas.
>
>Doug
Just playing around...
I created a form with a webbrowser control on it... put a button on the form with the following in the click;
STRTOFILE("<html><body><table border=2><tr><td>x</td></tr></table></body></html>","c:\x.htm")
this.parent.olecontrol1.navigate("c:\x.htm")
this.Parent.olecontrol1.execWB(6,0)
The strtofile would contain your html, and you would not want to put it out on the root of the c: drive.
I am making the assumption that you *only* want to print the html and not make it part of a report with other information.
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown