Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problem with printing content of TImage-comp.!

Posted on 1997-08-23
2
Medium Priority
?
167 Views
Last Modified: 2010-04-06
I have some problems with printing the content of my TImage-component to a printer!!
Like this:
With Printer do
BeginDoc;
Canvas.draw(20,20, Image1.Picture.Graphic);
EndDoc;

Why doesn´t it work? I get message 'Access violation' all the time!!(or something like it).
Sometimes the compiler seems to dislike the row containing :EndDoc;
Ps. I use Delphi Developer 2.0
Thanks!
Erik N
0
Comment
Question by:Erik N
[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
2 Comments
 
LVL 3

Accepted Solution

by:
mirek071497 earned 300 total points
ID: 1342291
i think so you'r canvas.draw ..... is for You'r form or other component where this function exest.

Try write

  Printer.BeginDoc;
  Printer.Canvas.Draw( 20, 20, Image1.Picture.Graphic );
  Printer.EndDoc;

I try this some minute before and all was ok.
{ of course you must have any graphic loaded to Image1 !}
0
 

Author Comment

by:Erik N
ID: 1342292
Thank you Mirek for your Help!!
Erik N
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

597 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