VB5 and Printer.PaperBin
Posted on 1997-12-04
Out of despiration I have upgraded to VB5 from VB4 because I couldn't get Crystal Reports to switch paper bins. So I tried to write the entire report in Visual BASIC instead. And after trying to write the program in VB4 I was informed by MicroSoft that the PaperBin property doesn't work in VB4. Now that I have VB5 I find that PaperBin still doesn't work right. I have sent mail to MicroSoft but don't expect a good reply any time soon. If anyone has a fix for this problem or knows of a service release that fixes it please let me know. Here is what I need to make work. (using APIs in place of this code is fine) I am doing this in Form_Load because I don't want any chance of anything being sent to the printer before this code runs. Any sample code you offer can be in any sub routine you like.
Private Sub Form_Load()
Printer.PaperBin = 2 ' Lower Bin
Printer.Print "Test Bin 2"
Printer.PaperBin = 1 ' Upper Bin
Printer.Print "Test Bin 1"
Everything works up to the point of the second PaperBin command. I then get an error stating 'PaperBin' can be set within a page. Even though I am not within a page.
This also happens with PaperSize, Orientation, and Duplex properties too.
Thanks in advance for any help that can be offered.