Link to home
Start Free TrialLog in
Avatar of antoniocarlos
antoniocarlos

asked on

How to print all contens from scrollbox

hello,

   I need to print the contens that is in a scrollbox, include the part that is in a not visible area

   Thanks
ASKER CERTIFIED SOLUTION
Avatar of shaneholmes
shaneholmes

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
Avatar of shaneholmes
shaneholmes

You need Joe Hecht's TExcellentFormPrinter!

http://home1.gte.net/joehecht/prnutil.htm
Another note:

A TScrollBox is simply a canvas with a moving cliping region, it has no
storage for the entire page.  Every time you scroll, some or all of the
contents are repainted, this gives the illusion of persitance where none
exists.  If you do not know about clipping etc. see the Win32.hlp file
for clipping regions.

I'm not sure, but I beleive there is a way to get the "Draw" procedures
in the VCL to paint themselves onto a specified canvas (Printer
canvas).  I read something about this a while back and do not remember
exactly what it was saying, nor where I read it, but it may stear you in
a useful direction.

If the above does not work, you could always iterate though all the
components on you form and dynamically Create and then Assign
settings/values (esentially duplicating the scroll box in it's full
size) to the printer canvas.  Ths may work, but then again the printer
canvas is WRITE ONLY, so .....


Shane
Hi. I agree with Shane, you should try Excellent Form Printer. I've been using it for 3 years and I'm very satisfied. Affordable price and great support.

hth, Hans 'pritaeas' Pollaerts
SOLUTION
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