Click here to Skip to main content
15,923,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to put a Preview Page in my work where the user can input/choose the paper size, margins, landscape or portrait while it is viewed directly at the Document Page without viewing the PrintPreviewDialog.

Something like a real time Preview page?
Posted
Updated 25-Jun-12 19:17pm
v2
Comments
Sergey Alexandrovich Kryukov 26-Jun-12 1:17am    
In what sense could it be "real time"? Why?
--SA
bnvelarde 26-Jun-12 1:19am    
Like for example when you want the page to landscape, just click the button landscape and then the page will turn into Landscape position. or when you adjust the margins, it is automatically viewed in the page/document. something like that.
Sergey Alexandrovich Kryukov 29-Jun-12 19:50pm    
Where is "real time" here? Could it be a typo? Did you mean "real life" or something similar?
--SA
bnvelarde 26-Jun-12 2:15am    
Something like in this link : http://quince.infragistics.com/#/Main/ViewPattern$pattern=Preview&lang=en

you can automatically see the changed values

1 solution

Hello...
Do following steps

1. Add a Form

2). Now Drop a Menustrip on this form (Add functionalities which you want to give user like Page settings, Font settings etc.)

3). Now Drop Pannel to this Form

4).
SQL
Make a function whose purpose is to make a object of PrintPreviewControl
and setting it's Properties which have mentioned below.

 a)Name
b) Dock = fill
c) Font
d) Document (documnet whic will be Provided to it for display )
e)zoom =1
f) StartPage = 0
Panel.controls.add(object of PrintPreviewControl  )



Call This Function after editing Page setups like Landscape , Potrait , Bottom size etc. before calling this function Dispose the object of PrintPreviewControl
 
Share this answer
 

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