Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Change titel and icon of printpreview (Read 1253 times)
Dirk Woelfel
YaBB Newbies
*
Offline



Posts: 17
Joined: Jun 26th, 2006
Change titel and icon of printpreview
Mar 20th, 2019 at 12:25pm
Print Post  
Hello,

how could I change the title text and the icon of the extended printpreview-Dialog (DiagramView.PrintPreviewEx). By default "document" appears at the title text.

Thanks a lot,

Dirk
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3343
Joined: Oct 19th, 2005
Re: Change titel and icon of printpreview
Reply #1 - Mar 20th, 2019 at 12:36pm
Print Post  
Hi,

The title comes from PrintDocument.DocumentName, which is also displayed as job title in printer queue. The icon can be set via PreviewOptions -

Code
Select All
diagramView.PreviewOptions.TitleBarIcon = new Icon(...);

var doc = new PrintDocument();
doc.DocumentName = "diagram 1";
diagramView.PrintPreviewEx(doc);
 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint