on-the-fly html file generation
-
Hi, In my application i need to generate an html page on-the-fly. The page is preseneted in the application's internal (iexplorer 6.0) browser. Of course, i can generate a text file with all the html tags and all that is required, but i'm sure there's a more elegent way of doing so. I couldn't find any on the web. Does anybody have a lead? Cheers in advance. Snir Yarom Singleton Technonlogies Ltd.
-
Hi, In my application i need to generate an html page on-the-fly. The page is preseneted in the application's internal (iexplorer 6.0) browser. Of course, i can generate a text file with all the html tags and all that is required, but i'm sure there's a more elegent way of doing so. I couldn't find any on the web. Does anybody have a lead? Cheers in advance. Snir Yarom Singleton Technonlogies Ltd.
You can set the text directly to the brwser document right? I think most of the Dlls (e.g Team Track) generating HTML pages are doing in same way. Anyway for that purpose, you dont need to write to a file. Only need to keep that buffer generated. SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar." My Blog | Understanding State Pattern in C++ -
Hi, In my application i need to generate an html page on-the-fly. The page is preseneted in the application's internal (iexplorer 6.0) browser. Of course, i can generate a text file with all the html tags and all that is required, but i'm sure there's a more elegent way of doing so. I couldn't find any on the web. Does anybody have a lead? Cheers in advance. Snir Yarom Singleton Technonlogies Ltd.
Sarath is saying right. You do not have to generate a file. there is simple way. You can get the interface IWebBrowser2 of the IE. from that get the interface IHtmlDocument2 of the IWebBrowser2. call the function write of the above interface. IHtmlDocument2::write( "text" ) But this code will work onlt in COM
-
Hi, In my application i need to generate an html page on-the-fly. The page is preseneted in the application's internal (iexplorer 6.0) browser. Of course, i can generate a text file with all the html tags and all that is required, but i'm sure there's a more elegent way of doing so. I couldn't find any on the web. Does anybody have a lead? Cheers in advance. Snir Yarom Singleton Technonlogies Ltd.
Hi, An elegent way could be, have your data in
xml
format, write anxsl
file that will transform your data fromxml
tohtml
and display that html in webbrowser Your can search forIDOMDocument
interface for transformation ofxml
throughxsl
intohtml
. hope this satisfies you:cool: Thanks