Solved

Problem with printing content of TImage-comp.!

Posted on 1997-08-23
2
164 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 100 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

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

Suggested Solutions

Title # Comments Views Activity
Show Listview image from database (String field) 5 185
find a node in VST 2 92
Drag & Drop... Data from one grid to another 2 53
firemonkey Android Listview Sort items 7 102
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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