Is there anyway to print the MSChart control from VB 6?
Printable View
Is there anyway to print the MSChart control from VB 6?
you could use Me.PrintForm
I think you'll find this as been asked on here a number of times, do a search.
VB Code:
Private Sub mnuPrint_Click() MsChart1.EditCopy 'copies a picture of the chart '(meta file format) and the chart data to the clipboard 'adjust the coordinates to suit your needs Printer.PaintPicture Clipboard.GetData(vbCFMetafile), 0, 0, _ MsChart1.Width, MsChart1.Height Printer.EndDoc 'sends the chart to the printer Clipboard.Clear End Sub
Thanks very much for you help. :wave: