Print a HTML CSS document from TWebbrowser object in DELPHI5
Posted on 2010-11-22
I am displaying a HTML CSS document in a TWebBrowser window. I need to print the document
to the printer with "backgrounds" and "colors" addressed by "urls" in the HTML document.
I've tried various solutions from other users and find -
1) Using the OLECMDID_PRINT, I lose the background and colors in the document that are pulled by
using an "url" address [same as if printed directly from Internet Explorer]
2) If a take an image snapshot - I get the blank area around the document along with the scrollbars displayed
in my image. Also, trying to print this image does not not display as a full page size.
So - I need to be able to print a document displayed within the TWebBrower window and have the page
look exactly as the screen looks in Delph5. Any ideas?