VB6 Runtime Errors 5 and 730

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Edward Mercer (tedmercer_at_rogers.com)
Date: 12/02/04


Date: Wed, 1 Dec 2004 22:08:40 -0500

My application has previously printed a determined number of screen forms
using the PrintForm method from both the non-compiled and compiled versions.
I have just discovered that while the non-compiled version works properly,
there is a problem when compiled. I cannot find anything wrong while
printing by stepping through the code.

When the compiled version is run, the first 2 forms print correctly and then
I receive Error 5, Invalid procedure call or argument, and the application
closes. PageSet.dll is installed.

A new user, on another computer, reported that when he tried running a trial
he received Error 730, Control 'tstdspf' not found, and subsequently Error
5. Would anyone know where I can find information on this error? So far I
have not been able to trigger Error 730 and it may not be associated with
Error 5. .

Any suggestions would be most appreciated.



Relevant Pages

  • Re: PrintForm method, no controls print
    ... The routine work great, except I think I'm trying to cram 20", screen size, ... the VB PrintForm method has never been ... ways of printing Forms. ... Private Declare Function GetDC Lib "user32" _ ...
    (microsoft.public.vb.general.discussion)
  • Re: PrintForm method, no controls print
    ... There are lots of alternative ways of printing Forms. ... My own personal view, for what it's worth, is that you should not send copies of a form to the printer at all because of the very low output resolution, particularly where there are controls containing text, and I personally prefer to "draw" the Form's data to the printer using standard printing methods. ... if the PrintForm method produces a printed output which is acceptable to you then here is one way of doing a similar job. ... Private Declare Function GetDC Lib "user32" _ ...
    (microsoft.public.vb.general.discussion)