Solved

Printing Graphics in Delphi 1.0

Posted on 1997-05-15
3
168 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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

726 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