Whiteangel Posted February 26, 2014 at 09:34 PM Report #546785 Posted February 26, 2014 at 09:34 PM Como posso imprimir um chart atraves de um PrintDocument? Eu tentei assim, mas nao me aparece nada na folha Dim Chart1 = New DataVisualization.Charting.Chart() ' Create and initialize print font Dim printFont As New System.Drawing.Font("Arial", 16) ' Create Rectangle structure, used to set the position of the chart Dim myRec As New System.Drawing.Rectangle(10, 30, 150, 150) ' Draw a line of text, followed by the chart, and then another line of text e.Graphics.DrawString("Line before chart", printFont, Brushes.Black, 10, 10) Chart1.Printing.PrintPaint(e.Graphics, myRec) e.Graphics.DrawString("Line after chart", printFont, Brushes.Black, 10, 200)
Gnrtuga Posted February 26, 2014 at 10:54 PM Report #546797 Posted February 26, 2014 at 10:54 PM Já viste isto? http://msdn.microsoft.com/en-us/library/dd456718(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1 e este também é capaz de ser útil: http://msdn.microsoft.com/en-us/library/dd489238(v=vs.110).aspx Boa sorte Férias! Estou por aqui: http://maps.google.p...001549&t=h&z=20 (a bulir claro está!) Nunca mais é verão outra vez.. :)
Whiteangel Posted February 28, 2014 at 03:49 PM Author Report #547133 Posted February 28, 2014 at 03:49 PM Já viste isto? http://msdn.microsoft.com/en-us/library/dd456718(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1 e este também é capaz de ser útil: http://msdn.microsoft.com/en-us/library/dd489238(v=vs.110).aspx Boa sorte Não consigo abrir os link
nelsonr Posted February 28, 2014 at 03:54 PM Report #547135 Posted February 28, 2014 at 03:54 PM Não consigo abrir os link Faz copy/paste da linha toda
Whiteangel Posted February 28, 2014 at 03:56 PM Author Report #547137 Posted February 28, 2014 at 03:56 PM Faz copy/paste da linha toda O que está nos link já eu tentei fazer e imprime a folha em branca
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now