Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

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 ?
thanks.
0
semuel
Asked:
semuel
  • 3
  • 2
1 Solution
 
ZifNabCommented:
can't you just print the canvas of the scrollbox?
0
 
MatveyCommented:
Try control's PaintTo:

<control>.PaintTo(Printer.Handle, 0, 0)
0
 
semuelAuthor Commented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
MatveyCommented:
-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
 
semuelAuthor Commented:
Please place it as an answer, so I can thanks...  :-)
0
 
MatveyCommented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now