Solved

Printing a scrolled program..

Posted on 1998-08-10
6
154 Views
Last Modified: 2010-04-04
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 ?
thanks.
0
Comment
Question by:semuel
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1361807
can't you just print the canvas of the scrollbox?
0
 
LVL 3

Expert Comment

by:Matvey
ID: 1361808
Try control's PaintTo:

<control>.PaintTo(Printer.Handle, 0, 0)
0
 
LVL 1

Author Comment

by:semuel
ID: 1361809
ZifNab,
according to Delphi's help, Tscrollbox does not have a Canves propety.

Matvey,
and this will write the hole surface to the printer ?
how do he knows then to paint only a part ?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:Matvey
ID: 1361810
-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...
0
 
LVL 1

Author Comment

by:semuel
ID: 1361811
Please place it as an answer, so I can thanks...  :-)
0
 
LVL 3

Accepted Solution

by:
Matvey earned 100 total points
ID: 1361812
It really works? I'm curious what control it is? Please try it and make sure it works, OK?

All the best, --Matvey
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question