如何制作没有PrintPreviewDialog.show的预览页? [英] How to make a Preview Page without PrintPreviewDialog.show?

查看:85
本文介绍了如何制作没有PrintPreviewDialog.show的预览页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在工作中放置一个预览页",以便用户可以直接在文档"页面上查看而不选择PrintPreviewDialog的情况下输入/选择纸张尺寸,边距,横向或纵向.

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?

推荐答案

你好...
请执行以下步骤

1.添加表格

2).现在,在此表单上放置一个菜单条(添加要向用户提供的功能,例如页面设置,字体设置等).

3).现在将Pannel放到此表单

4).
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).
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  )




在调用此功能之前,在编辑了诸如Landscape,Potrait,Bottom size等页面设置之后,调用此函数处置PrintPreviewControl的对象




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


这篇关于如何制作没有PrintPreviewDialog.show的预览页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆