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

x
?
Solved

Printing a TeeChart with visual component dropped on it !!!

Posted on 2001-07-05
10
Medium Priority
?
285 Views
Last Modified: 2012-05-04
Hi, to print a TDBchart is pretty easy.
MyTeeChart.print.
What to do in the cases when on our MyTeeChart we have dropped e.g. one button & two labels ? The same command "MyTeeChart.print" print the chard bared from this components.
How can I make to print  MyTeeChart out as it looks (WYSIWYG) together with other components which I dropped on it ?
0
Comment
Question by:genc_ymeri
[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
  • 4
  • 4
10 Comments
 
LVL 13

Expert Comment

by:Epsylon
ID: 6256894
You mean something like this?

uses Printers;

  Printer.BeginDoc;
  Printer.Canvas.CopyRect(Printer.Canvas.ClipRect, Form1.Canvas, Bounds(Chart1.Left, Chart1.Top, Chart1.Width, Chart1.Height));
  Printer.EndDoc;
0
 

Author Comment

by:genc_ymeri
ID: 6257015
When I read your code I thought this is what I meant but when I tried, it didn't work.

It prints out nothing.

PS:
D5/W2K
0
 
LVL 13

Accepted Solution

by:
Epsylon earned 400 total points
ID: 6257137
Maybe you have to change Form1 to the form with the chart.


You can also test it by placing a TPaintBox (System tab) on the form and use this to copy the chart to the paintbox:

PaintBox1.Canvas.CopyRect(PaintBox1.Canvas.ClipRect, Form1.Canvas, Bounds(Chart1.Left, Chart1.Top, Chart1.Width, Chart1.Height));
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:genc_ymeri
ID: 6260639
>PaintBox1.Canvas.CopyRect(PaintBox1.Canvas.ClipRect, Form1.Canvas, Bounds(Chart1.Left, Chart1.Top, Chart1.Width,
Chart1.Height));
....

it didn't work either
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6260738
It should work... Maybe you forgot to link a ButtonClick event or something like that...
0
 

Author Comment

by:genc_ymeri
ID: 6261982
Did you try it ?
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6262293
Yes, it works ok here.
0
 

Author Comment

by:genc_ymeri
ID: 6264850
Oh, It doesn't work here.
Would you E-mail the entire unit me please ?

PS:
genc_ymeri@hotmail.com
D5/W2K/Update Pack1/2
0
 
LVL 26

Expert Comment

by:Russell Libby
ID: 8702084
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept Epsylon's comment as answer

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Thank you,
Russell

EE Cleanup Volunteer
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

636 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