Solved

Printing a scrolled program..

Posted on 1998-08-10
6
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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