Avatar of al4629740
al4629740
Flag for United States of America asked on

can't print form image to this type of printer in vb6

I have the following vb6 code.

If MsgBox("This record has been saved.  Would you like to print?", vbYesNo Or vbQuestion, "Print Record") = vbYes Then
    Printer.Orientation = vbPRORLandscape
    frmRegistrationSYAB.PrintForm
    Printer.Orientation = vbPRORLandscape
    frmRegistrationSYAB2.PrintForm
End If

Open in new window



I get the error on line 5 "can't print form image to this type of printer"

Why is this happening?
Visual Basic Classic

Avatar of undefined
Last Comment
al4629740

8/22/2022 - Mon
Martin Liss

What is your default printer?
ASKER CERTIFIED SOLUTION
Paul Jackson

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Martin Liss

Does the printer have the ability to print landscape?
al4629740

ASKER
That worked.  Thanks!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck