` Running HTML file from Clarion (Bernard Grosperrin ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

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 April 19, 2024, 10:47 am
This article has been viewed 35118 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: