Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Running HTML file from Clarion 2009-04-10 -- Bernard Grosperrin In your window:
OLE,AT(172,2,279,286),USE(?OLE1),CREATE('Shell.Explorer'),#ORDINAL(7)
END
In your WindowManager Init:
?OLE1{prop:ReportException} = TRUE
In code, on a button, or an event like takenewselection, if it's to
display from a browse
LOC:TempFileName = Self.Q.ORI:FileName ! Self.Q is the browse
queue
?OLE1{'Navigate("file:///' & CLIP(LOCTempFileName))
That's it!
Salt to taste, but that works just fine for me, for any HTML file I
want to display. You can create a procedure/window just for that, and
pass it the file name as parameter, or like I did here, use that on
the side of a browse to display files matching records in the browse.
Today is November 23, 2024, 2:06 am This article has been viewed 35321 times.
|
|