Duplex Printing in VB.NET

steveh
SilverLounger
Posts: 1952
Joined: 26 Jan 2010, 12:46
Location: Nr. Heathrow Airport

Duplex Printing in VB.NET

Post by steveh »

Morning all

Does anybody do duplex printing in VB.NET? our VB6 version used to do it with no problem but with VB.NET it is printing the reverse page upside down whether it is set to vbPRDPHorizontal (which I believe is the right option) or vbPRDPVertical (Which I beleive is thw wrong option). The MSDN page says:-

"When you use horizontal duplex printing, the tops of both sides of the page are on the same end of the sheet. When you use vertical duplex printing, the bottom of one page is at the same end of the sheet as the top of the next page"

The full article is here Printer Duplex Property

TIA
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Duplex Printing in VB.NET

Post by HansV »

I have no experience with VB.NET, but does it make a difference if you use the value 2 instead of vbPRDPHorizontal?
Best wishes,
Hans

steveh
SilverLounger
Posts: 1952
Joined: 26 Jan 2010, 12:46
Location: Nr. Heathrow Airport

Re: Duplex Printing in VB.NET

Post by steveh »

HansV wrote:I have no experience with VB.NET, but does it make a difference if you use the value 2 instead of vbPRDPHorizontal?
Hi HansV

thanks for looking, the starting point was using 2 and we have also tried 3 on the off chance but neither number or charachter is working for us
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Duplex Printing in VB.NET

Post by HansV »

I'm afraid I can't help with this. Let's see if someone else has a suggestion.
Best wishes,
Hans

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Duplex Printing in VB.NET

Post by Rudi »

steveh wrote:
The full article is here Printer Duplex Property

TIA
I might be completely wrong here, but in the odd chance that it helps...
I notice that you link points to VB6 code, where you are querying for help on VB.NET. Have you looked at help in the VB.NET forum...something like this: set-printer-duplex-using-vbnet.
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

steveh
SilverLounger
Posts: 1952
Joined: 26 Jan 2010, 12:46
Location: Nr. Heathrow Airport

Re: Duplex Printing in VB.NET

Post by steveh »

Rudi wrote:
steveh wrote:
The full article is here Printer Duplex Property

TIA
I might be completely wrong here, but in the odd chance that it helps...
I notice that you link points to VB6 code, where you are querying for help on VB.NET. Have you looked at help in the VB.NET forum...something like this: set-printer-duplex-using-vbnet.
Hi Rudi

Thanks for the link but the link I gave above is for Visual Basics 2012 which I believe is .NET bacause the print commands in VB6 were different to these

Our program guy has somehow fixed it but even he doesn't know how or why, he said he was 'playing around' all day and it suddenly worked and the only thing he can think is that he changed the code to be global? Thanks again for looking though
You do not have the required permissions to view the files attached to this post.
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin