Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
How do I set "Two Pages" in PrintPreviewDialog ?

Attension!
I need the preview to be as "Two Pages"



In other word, when you are going to print multiple pages in PrintPreviewDialog. it shows just the first page. And then you can click on buttons those place up there on menu.

So what I need is when the dialog opens, shows as two pages, not the first page.

I need some codes like below:
VB
PrintPreviewDialog1.SeelectedButton.TwoPages()

(I hope I could say what I want)

Thanks.
Posted

1 solution

PrintPreviewDialog1.PrintPreviewControl.Columns = 2

(See MSDN[^])
 
Share this answer
 
Comments
Sh.H. 15-Apr-14 13:49pm    
Thanks
But I need my two pages to be swap.
Because my program is Right-to-Left.
So I need the page1 to be visible on right side, and page2 on left side.
I tried below code but doesn't work.

PrintPreviewDialog1.PrintPreviewControl.RightToLeft = Windows.Forms.RightToLeft.Yes

Any help please?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900