Solved

Printing Graphics in Delphi 1.0

Posted on 1997-05-15
3
144 Views
Last Modified: 2010-04-04
OK, basically all I'm trying to do is print out two graphs
from of the screen.  I use stretchdraw from the image canvas
to the printer canvas.  Sound pretty simple, but sometimes
only one graph will appear, or no graphs at all.  Because
it only happens sometimes its hard to find what the problem
is.  My question is why and how do I fix it? (I figure its
probably memory related.
0
Comment
Question by:boabyte
3 Comments
 
LVL 12

Expert Comment

by:andrewjb
ID: 1336311
Just so you know you're not alone... I'm having the same trouble. First page of a graphical printout is always OK. Second often comes out blank. Don't know why. Will let you know if I get anywhere!
AJB
0
 
LVL 1

Accepted Solution

by:
slp earned 150 total points
ID: 1336312
There are known problems with using StretchBlt() (which underlies the StretchDraw method) with most printer canvases, the most general solution involves using StretchDIBBits()instead.  For more details, have a look at Borland's tech doc: TI3155 "A Better Way to Print a Form" at their web site:

http://www.borland.com/devsupport/delphi/ti_list/


SLP

0
 

Author Comment

by:boabyte
ID: 1336313
Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

759 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

18 Experts available now in Live!

Get 1:1 Help Now