MaxMilan
July 25th, 1999, 10:36 AM
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
I'd like to print a chart control I have on a form.
How can I do it with code ?
Thank you
MaxMilan
|
Click to See Complete Forum and Search --> : How to print a MSChart Control MaxMilan July 25th, 1999, 10:36 AM 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 Dr_Michael July 26th, 1999, 05:45 AM 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 MaxMilan July 26th, 1999, 08:58 AM 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 MaxMilan July 26th, 1999, 11:44 AM 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 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |