
Urgent Help Needed - Common dialog error 28670 in win 95 - Help!,
Hi!
I'm running this code in VB5.0 Pro (SP3) with the common dialog control
It works fine under NT4.0 but when run under win95 I get errors
When I comment out the on eror goto I get error 28670
Can anyone help?
If optPrintFormatted = True Or optPrintDraft = True Then
' set cancel to true
MsgBox "in Call Entry about to call CMDialog1"
CMDialog1.CancelError = True
CMDialog1.FromPage = 1
CMDialog1.ToPage = 1
'On Error GoTo bypassPnt
' display the print dialog box
CMDialog1.ShowPrinter
' get user-selected values from the dialog box
beginpage% = CMDialog1.FromPage
endpage% = CMDialog1.ToPage
numcopies% = CMDialog1.Copies
Screen.MousePointer = 11
If chkPrintPreview = 1 Then
PrintPreview% = 1
Else
PrintPreview% = 0
End If
MsgBox "about to call PntJobCd"
Call PntJobCD(numcopies%, Val(Job$), optPrintFormatted,
PrintPreview%)
Else
End If
TIA
Brian