?
Solved

Printing Graphics in Delphi 1.0

Posted on 1997-05-15
3
Medium Priority
?
171 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
[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 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 300 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

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!

Question has a verified solution.

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

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…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

765 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