S
steve
Using Mschart in VB.net 2005
I get the error 'System.ExecutionEngineException' when I run the print code
below..
The Graph display data OK on the form
code..................................................................
My.Computer.Clipboard.Clear()
MSChart1.EditCopy()
If My.Computer.Clipboard.GetDataObject.GetDataPresent(DataFormats.Bitmap)
Then ******** get error here
bmpGraph =
System.Windows.Forms.Clipboard.GetDataObject.GetData(System.Windows.Forms.DataFormats.Bitmap)
End If
drawFormat.FormatFlags = StringFormatFlags.NoWrap
' Draw string to screen.
e.Graphics.DrawString(lbltitle.Text, drawFont, drawBrush, _
x, y, drawFormat)
e.Graphics.DrawImage(bmpGraph, 100, 100, 1000, 550)
.....................................................................................................
Any ideas
Regards
steve
I get the error 'System.ExecutionEngineException' when I run the print code
below..
The Graph display data OK on the form
code..................................................................
My.Computer.Clipboard.Clear()
MSChart1.EditCopy()
If My.Computer.Clipboard.GetDataObject.GetDataPresent(DataFormats.Bitmap)
Then ******** get error here
bmpGraph =
System.Windows.Forms.Clipboard.GetDataObject.GetData(System.Windows.Forms.DataFormats.Bitmap)
End If
drawFormat.FormatFlags = StringFormatFlags.NoWrap
' Draw string to screen.
e.Graphics.DrawString(lbltitle.Text, drawFont, drawBrush, _
x, y, drawFormat)
e.Graphics.DrawImage(bmpGraph, 100, 100, 1000, 550)
.....................................................................................................
Any ideas
Regards
steve