|
-
Nov 23rd, 2004, 05:05 AM
#1
Thread Starter
Fanatic Member
Printing MSChart
Is there anyway to print the MSChart control from VB 6?
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Nov 23rd, 2004, 05:41 AM
#2
you could use Me.PrintForm
-
Nov 23rd, 2004, 05:47 AM
#3
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
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Nov 23rd, 2004, 05:54 AM
#4
Thread Starter
Fanatic Member
Thanks very much for you help.
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|