Solved

printPreviewDialog question

Posted on 2004-09-15
7
241 Views
Last Modified: 2010-04-15
Hello

printPreviewDialog1 is great for quiacky adding a print preview. But this form always loads with the default .net icon.

1) How can I change the icon of this form
2) I would like it, that the user is somehow able to select the quantity when they are printing the labels. In my current setup when the user clicks the print button on this form, one document is simply printed. I would like it if I could set the properties from the print preview page. Is that possible? Or atleast a printer setup dialog to load up, rather than the documnet just being printed
0
Comment
Question by:auk_ie
  • 2
7 Comments
 
LVL 9

Accepted Solution

by:
s_sansanwal earned 168 total points
ID: 12071866
answer to 1

                  this.printPreviewDialog1.Icon = this.Icon; // add this line
                  this.printPreviewDialog1.ShowDialog();

believe me, it really works

S Sansanwal
0
 
LVL 10

Assisted Solution

by:123654789987
123654789987 earned 166 total points
ID: 12071976
Use the following link for showing printPreviewDialog

http://www.c-sharpcorner.com/winforms/texteditor.asp

0
 
LVL 18

Assisted Solution

by:armoghan
armoghan earned 166 total points
ID: 12073203
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12073217
this is how to customize the printPreviewDialog

http://www.dotnet247.com/247reference/msgs/48/243222.aspx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now