Link to home
Start Free TrialLog in
Avatar of bloodbird
bloodbird

asked on

how to make several html page into one file , and then read it in my program?

how to make several html page into one file , and then read it in my program?

i have some html file , and i want pack them into one
file, then use WebBrowser vcl compenent show them by
a certain order.

could you help me ?
Avatar of Gwena
Gwena

Huh?

If you actually just want to join several html pages together...like concatinating strings.. and then display the result..then that won't work well :-)

If you want to take several html pages and somehow add them to your exe file and then display them at run time...then that is pretty easy... but I do it by just calling the default web browser to display the pages...I extract the pages into windows/temp  it works well.

If webbrowser vcl can show a page held in a stream then you could do that and never write the html to the disk...

If this is the sort of thing you want to do let me know and I will send you some demo code.  I made a little program that stores a copy of a website inside of itself..then extracts and displays it by clicking a button :-)
Avatar of bloodbird

ASKER

hi! Gwena

  That is what i want , if it can show a page held in
stream ,that could be wonderful ,

where is your code ?

my email address : kisskiller@163.net

very thank you
ASKER CERTIFIED SOLUTION
Avatar of Gwena
Gwena

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh...

I just had the demo extract the files to the current directory... you could extract them to windows/temp just as easily ...  sorry about not giving demo code for viewing the html pages from a stream.. but I only have the free D6 personal and D2 standard... so I can't try out using Webrowser vcl.... I'm not sure if it can do this anyway. There is a shareware component that can... at least I seem to remember seeing one somewhere :-)
hi, Gwena,
  thank you very much , your code is good :)