Solved

Problem with printing content of TImage-comp.!

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
find a node in VST 2 68
creating threads in delphi 1 101
Tvertscrollbox like a whatsapp layout 5 26
DBCtrlGrid, Delphi, Scroll 8 8
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…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

785 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