Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I draw a chart by graphic lines in Visual Studio Power Packs and now I want to print form but I can't see chart in print page, why?
How I can fix it?
It's very important please help me.
Posted
Updated 14-Sep-11 21:31pm
v2
Comments
uspatel 15-Sep-11 2:58am    
what you have tried!

If you want to print form then try to use Visual Basic PrintForm control.
It is available in visual studio tool box under visual basic poer packs.
hope it works.
 
Share this answer
 
v2
Comments
AmirAli1374 15-Sep-11 3:05am    
I used, but didn't work.
uspatel 15-Sep-11 4:29am    
share code that u have use to print
You need to use the Chart control's Printing property to print the chart picture in Chart Control.
To print the chart picture in a document that contains other document elements, invoke the PrintPaint method inside a PrintPageEventHandler. You must pass to the PrintPaint method the Graphics property from the PrintPageEventArgs object, along with a Rectangle object that defines the position of the chart picture in the document.
Reference Link :- MSDN-Chart Printing (Chart Controls)[^]
 
Share this answer
 
Comments
AmirAli1374 15-Sep-11 3:04am    
No, that's a graphical shape not really a chart.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900