🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.basic.visual.misc
1 messages
1 total messages Started by Wendel Sun, 14 Apr 2002 02:02
Question about buttons and VB Functions
#333
Author: Wendel
Date: Sun, 14 Apr 2002 02:02
28 lines
2008 bytes
I have found a VB function that exports a chart(in bitmap form) that is
being displayed by a VB program(not a webpage). This is that function:

Private Sub cmdsave_Click()
  On Error GoTo saverr
  Dim strsavefile As String
  With dlgChart ' CommonDialog object
    .Filter = "Pictures (*.bmp)|*.bmp"
    .DefaultExt = "bmp"
    .CancelError = True
    .ShowSave
    strsavefile = .FileName
    If strsavefile = "" Then Exit Sub
  End With
  MSChart1.EditCopy
  SavePicture Clipboard.GetData, strsavefile
  Exit Sub
saverr:
  MsgBox Err.Description

End Sub

I need to use this same function in an HTML page that has a chart embedded
in it as well. How do I do this and call it from a button? Do I have to do
this within an ASP? I am a complete noob with respect to VB so please bare
with me.

Thanks in advance!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads