Solved

Printing a scrolled program..

Posted on 1998-08-10
6
150 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now