本文介绍了如何制作没有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?

推荐答案

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的预览页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 02:15