with vb.net, has anyone figured out a way to print an entire scrollable form?

巧了我就是萌 提交于 2019-12-13 23:47:01

问题


I have a form which of course is scrollable and I need to print all of the contents of the form on multiple pages.

I've tried everything I can find using PrintForm, but it only prints one page and only what can fit on the screen.

I've looked at PrintDocument, but that forces me to recreate the entire document formatted for the printer. I need to print what is already there.

I do not have any scrollable elements inside the form, just the parent form itself is scrollable.

I've scoured the internet and I can't find anything. I'll even buy a control if one is out there.

Thanks.


回答1:


Insert a PrintForm component to the form and then

PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)

valter



来源:https://stackoverflow.com/questions/22056099/with-vb-net-has-anyone-figured-out-a-way-to-print-an-entire-scrollable-form

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!