.NET Framework Bookmark and Share   
 index > Chart Controls for .NET Framework > Printing
 

Printing

Hi,

I have created a Column chart. Now I want to print it. How can I accomplish this?
MJ_Developer.
MJ_Developer
So, you have the charts showing up in the browser?

In this case I suggest you press Ctrl-P to print the page.
  • Marked As Answer byMJ_Developer Thursday, September 17, 2009 11:24 AM
  •  
sipla
Sure, but it probably involves javascript and/or css... Hiding parts of the page you don't want printed.. or opening a temporary page with only the chart and printing that.
  • Marked As Answer byMJ_Developer Thursday, September 17, 2009 11:24 AM
  •  
sipla
If you want to have a PrintPreview and then Print use

Chart1.Printing.PrintPreview()

If you don't want PrintPreview and want directly Print

Chart1.Printing.Print(True/False)
True - Shows Printer Properties
False - Directly picks the default printer and prints


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
KishorePV
	Dim doIWantAPrintDialogToAppear As Boolean = True 'or False
	Chart1.Printing.Print(doIWantAPrintDialogToAppear)

More complex printing samples in the sample environment(http://code.msdn.microsoft.com/mschart). You have looked at it?

Ofcourse you have.. you just couldn't find the print samples.

They're under the Contents-tab -> Chart Features -> Printing

sipla
I'm developing an ASP.NET application!

MJ_Developer.
MJ_Developer
So, you have the charts showing up in the browser?

In this case I suggest you press Ctrl-P to print the page.
  • Marked As Answer byMJ_Developer Thursday, September 17, 2009 11:24 AM
  •  
sipla
Is any method to print the 'Chart1' itself?
MJ_Developer.
MJ_Developer
Sure, but it probably involves javascript and/or css... Hiding parts of the page you don't want printed.. or opening a temporary page with only the chart and printing that.
  • Marked As Answer byMJ_Developer Thursday, September 17, 2009 11:24 AM
  •  
sipla

You can use google to search for other answers

Custom Search

More Threads

• Need .Net component for ontology graphics
• Need to show you chart pictures to get the point across... Too Complex to describe in words
• Custom Axis Labels
• I want to specify the colors of my bar chart
• In the Crystal Report, change the data displayed at runtime
• javascript postback for chart imageclick does not work on IE 7,8. Works on FF and Opera.
• Multiple cursors
• problem installing chart controls
• using count formula to group data in bar chart
• Display percentage and value in data labels?