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
Solved

Printing Graphics in Delphi 1.0

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Title # Comments Views Activity
Convert Jpg /PNG To GIF 5 149
Using idhttp to login to instagram 2 106
Base1 Encode/Decode 3 81
Wincontrol not (correctly) drawn 15 40
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 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 an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

791 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