打印对于屏幕或Visio之类的页面来说太大的表单 [英] Print a Form That Is Too Large for the Screen or a Page Like In Visio

查看:225
本文介绍了打印对于屏幕或Visio之类的页面来说太大的表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可滚动的窗口,允许用户放大和缩小.

I have a scrollable window that I allow the user to zoom in and out.

我希望能够以当前的缩放级别打印整个表格,就像Visio一样.理想情况下,使用Visio之类的打印预览可以在打印非常大的文档时显示页面的轮廓.

I would like to be able to print the entire form at the current zoom level, something like Visio does.  Ideally, having a print preview like Visio that showed the outline of the pages when you print a really large document.

有没有我可以看的好的示例或教程.我最初虽然保存文件,然后使用某种类型的自动化打开Visio并打印文件,但是我不能保证用户会安装Visio.

Are there any good samples or tutorials that I could look at.  I initially though of saving the file and then use some type of automation to open Visio and print the file, but I can not guarantee the user would have Visio installed.

谢谢

推荐答案

假定此可滚动窗口能够基于滚动位置和窗口大小.

Presumably this scrollable window has the ability to calculate the visible portion of an image based on a scroll position and window size.

使用打印文档,复制相同的绘图代码,但计算滚动位置",然后单击确定".根据页码替换窗口大小"带有可打印页面的装订尺寸.本质上使用相同的代码来绘制一部分 将整个文档放到屏幕上,以将文档的一部分绘制到PrintDocument上,一次一页.

Using a PrintDocument, replicate this same drawing code but calculate the "scroll position" based on the page number and replace the "window size" with the printable page bound size.  Essentially use the same code which draws a portion of the overall document to the screen to draw portions of the document to the PrintDocument, one page at a time.


这篇关于打印对于屏幕或Visio之类的页面来说太大的表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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