Printing a scrolled program..

Hello there.

I want to print a screen-capture objects that sits inside a scroll-box. I can take the forum's Canvas, and take the rectangle of the scrollbox, but if not all the object is being shown in the box, I need to access it somehow else.

any solution ?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

can't you just print the canvas of the scrollbox?
Try control's PaintTo:

<control>.PaintTo(Printer.Handle, 0, 0)
semuelAuthor Commented:
according to Delphi's help, Tscrollbox does not have a Canves propety.

and this will write the hole surface to the printer ?
how do he knows then to paint only a part ?
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

-What do you mean only a part? If it's bigger then the printer page, it'll be cropped. If you want to stretch it, than paint it first on a bitmap, and then stretch it to the printer page - better with something like StretchDIBits...
semuelAuthor Commented:
Please place it as an answer, so I can thanks...  :-)
It really works? I'm curious what control it is? Please try it and make sure it works, OK?

All the best, --Matvey

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.