rincewind666
asked on
Converting html files to images
I have a list of paths to html files in a listbox. I need to convert each of these html files to an image (.gif, .jpg, .bmp or whatever). I need the delphi code or maybe a component that can do this.
I am using Delphi 6. I am awarding 500 points (the maximum allowed) for this.
I am using Delphi 6. I am awarding 500 points (the maximum allowed) for this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
By the way, that should work as i have tested it
ASKER
Sorry Hypoviax. I am getting the following error:
EInvalid Graphic with message 'Unsupported Clipboard Format'
I am new with Delphi so don't know how to fix this. Your help is greatly appreciated.
EInvalid Graphic with message 'Unsupported Clipboard Format'
I am new with Delphi so don't know how to fix this. Your help is greatly appreciated.
Hang on. It should work. It worked on mine. I'll retest it
I know why you get that message. What i have done is put a try accept block around the code. This will fix an error so you won't see it when you run the exe. However in delphi you will still see this message even if it is handled. To turn it off:
Tools- Debugger Options - Language Exceptions - then down the bottom uncheck the box saying "Stop on Delphi Exceptions"
Regards,
Hypoviax
Tools- Debugger Options - Language Exceptions - then down the bottom uncheck the box saying "Stop on Delphi Exceptions"
Regards,
Hypoviax
Also make sure that timer 2 is not enabled
>> Also make sure that timer 2 is not enabled
In the properties of the timer
In the properties of the timer
ASKER
Many thanks for your help Hypoviax. This is excellent! You deserve the 500 points.
If you know of a way to get rid of the taskbar in the image, please let me know. Other than that, I am very pleased.
If you know of a way to get rid of the taskbar in the image, please let me know. Other than that, I am very pleased.
Try
form1.bringtofront;
or
application.bringtofront
Put either of the above inside timer2.ontimer procedure, before the screenshot is taken...
and make the formstyle property = fsstayontop
Regards and Thanks,
Hypoviax
form1.bringtofront;
or
application.bringtofront
Put either of the above inside timer2.ontimer procedure, before the screenshot is taken...
and make the formstyle property = fsstayontop
Regards and Thanks,
Hypoviax
The other way of course is to make your taskbar minimise of the screen when not in use. This is a windows setting under Taskbar properties (control panel)
Regards,
Hypoviax
Regards,
Hypoviax