Posted 15 years ago by Marianne
Avatar
Is this a property that can be set somewhere? If not, can you either:

Add a property in the printersettings to change it

-or-

Use the parent form's icon?

Thanks

------------------------------- Marianne

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Marianne,

I don't know of a property that can be set for that. But our code for PrintPreview is very simple:

PrintPreviewDialog dialog = new PrintPreviewDialog();
dialog.Document = printSettings.PrintDocument;
dialog.ShowDialog();
I don't see anything on the PrintPreviewDialog class for an Icon. Let me know if you find anything.


Actipro Software Support

Posted 15 years ago by priebe
Avatar
I think the problem is that VS.NET doesn't give you designer access to the Icon
property.

But it can be done: <A HREF="http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&threadm=a6abb9ad.0402250954.7d1a0a42%40posting.google.com&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26c2coff%3D" TARGET=_blank>http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&threadm=a6abb9ad.0402250954.7d1a0a42%40posting.google.com&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26c2coff%3D</A> 1%26q%3Ddotnet%2Bprint%2Bpreview%2Bicon%26btnG%3DSearch

I, too, would appreciate a fix. It would make our app look sloppy if we left the
default VS.NET icon on the print preview.
The latest build of this product (v2018.1 build 0342) was released 10 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.