开发者

.NET PrintPreviewControl

开发者 https://www.devze.com 2023-02-10 15:15 出处:网络
I\'m trying to use the PrintPreviewControl in .NET to display the print preview of my controls. I have a panel on the left with the settings (i.e. landscape, margins etc.). The user can update these a

I'm trying to use the PrintPreviewControl in .NET to display the print preview of my controls. I have a panel on the left with the settings (i.e. landscape, margins etc.). The user can update these and see the actual printout change as they do so (similar to Excel 2010 here).

The only problem is

InvalidatePreview();

on the PrintPreviewControl invalidates all the pages, you get a dialog that says genera开发者_开发知识库ting previews (doesn't look nice).

I'd like something like virtual paging in the DataGridView so that only the page displayed gets invalidated?

Does anyone know how I could do this with the PrintPreviewControl?

Any help appreciated...

0

精彩评论

暂无评论...
验证码 换一张
取 消