Printing using VB 2005

Please, I need a help in printing axmschart control.

I know how to print something like richtextbox. but I couldn't figure out how to print the chart resulting from an axmschart control.

I'm using VB 2005 Express Edition.

Thank You in advance.

[270 byte] By [Rania171] at [2007-12-23]
# 1

I don't think this control is supported in VB EE.

I tryed figuring out how to print with it today.

The 'axmschart1.CreateGraphics' looked promising but I could not figure

out how to use it.

The only print examples I could find used 'AxMSChart1.EditCopy()' to copy

the chart to the clipboard and then in a PrintPage event grab the clipboard

contents to a bitmap to do a e.graphics.drawimage.

In my testing, only the text seemed to make it to the clipboard.

Reference article http://www.groupsrv.com/dotnet/about179782.html

Maybe you will have better luck than me!

TallDude at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2

Thank You Tall Dude for your reply.

I've tried copying the chart to a clipboard and then graping the clipboard to a bitmap to print. but it doesn't work too.

I'm going to work in creating a new control with axmschart and implement the print function in it. I hope that will work!!!!

Rania171 at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...