|
-
July 25th, 1999, 10:36 AM
#1
How to print a MSChart Control
Hi all,
I'd like to print a chart control I have on a form.
How can I do it with code ?
Thank you
MaxMilan
-
July 26th, 1999, 05:45 AM
#2
Re: How to print a MSChart Control
Why don't you try the me.PrintForm ? This will print the entire form (as a graphic) and the mschart too. You can set before all the background colors to be white. If your form includes some controls or e.g. buttons that you don't wanna be printed, just set their visible property to false before me.PrintForm. If the above won't work, I'll give you a super dooper way of printing a control that have already posted here (search for that: "printing compatibility")
Michael Vlastos
Company MODUS SA
Development Department
Athens, Greece
Tel: +3-01-9414900
-
July 26th, 1999, 08:58 AM
#3
Re: How to print a MSChart Control
Thank you for your answer.
Me.Printform it's not what I want, because it prints at low resolution.
I found your code and it's very cool.
The only problem is that I don't want to print an entire form, but only some controls...anyway I'll try to copy and paste only certain controls at runtime taking some code from yours.
Thanks
Max
-
July 26th, 1999, 11:44 AM
#4
Re: How to print a MSChart Control
I found it !! ( but this works only for MSCHART control)
This control has a EditCopy method.
So you can write this:
MSChart1.Editcopy
Picture1=clipboard.getdata()
In this way I have in the picture all my graph.
In addition you can use also
Picture1.PaintPicture
(or Printer.PaintPicture) and in this way you can put your graph in any place into your picture control.
Thank you
Max
-
July 19th, 2000, 09:08 AM
#5
Re: How to print a MSChart Control
Hi Max,
I tried to find michael's code as he suggested but no match was found. Can you tell me how to find it?
Thanks!
-John
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|