🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #28

VB: common print dialog bug?

#28
From: John Flowers
Date: Tue, 27 Oct 1992 19:35
31 lines
1601 bytes
I have been trying to use the VB pro toolkit common dialog box
print control. Everything works except for the cancel button.

The manual says that the cancel button is a trappable error but when I 
try setting it up it just fails. Here is my procedure for calling to
the common dialog box.


>Sub Command1_Click ()
>On Error GoTo error_line
>cmdialog1.flags = pd_pagenums Or pd_hideprinttofile
>cmdialog1.action = 5
>Exit Sub
>error_line:
>MsgBox Str$(Err)
>Resume Next
>End Sub


It never makes it to the error_line procedure.

Please help!

*********************************************************************
*   John P. Flowers            _\|/_______________________          *
*   johnf@scd.hp.com            /|\ We can tell how                 *
*   HP Santa Clara Division         far gone you are!               * 
*   Laser R&D                                                       *
*   q: What's the difference between hardware and software ?        *
*   a: You can't kick the software.....                             *
*********************************************************************
Technical Details
Message-ID: <76630002@hpscit.sc.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!scd.hp.com!hpscdm!hplextra!hpcc05!hpscit!johnf

Show Full Headers
Complete Article Headers
From: johnf@hpscit.sc.hp.com (John Flowers)
Date: Tue, 27 Oct 1992 19:35:17 GMT
Subject: VB: common print dialog bug?
Message-ID: <76630002@hpscit.sc.hp.com>
Organization: Hewlett-Packard, Santa Clara, CA
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!scd.hp.com!hpscdm!hplextra!hpcc05!hpscit!johnf
Newsgroups: comp.os.ms-windows.programmer.misc
Lines: 32