Solved

PrintDialog use on windows server 2008

Posted on 2008-10-08
4
288 Views
Last Modified: 2012-06-21
Does anyone know of any considerations that must be used when showing a C# printdialog when using windows server 2008?  The code is bare bones:

PrintDialog pd = new PrintDialog();
pd.ShowDialog();

These 2 lines show the dialog box on windows xp and windows vista, but when I compile and execute on my Server 2008 machine, the dialog box does not open.  Any ideas?
0
Comment
Question by:spartise
  • 3
4 Comments
 
LVL 26

Expert Comment

by:Anurag Thakur
Comment Utility
on winows 2008 server evenything has been made much more secure so i am assuming that its a sercurity issue thats stopping your code from showing the print dialog

0
 

Author Comment

by:spartise
Comment Utility
Ok, does anyone know of a way to get around said security issue?  Is there another type of print dialog available?  Or does something have to be set in order for it to show?
0
 

Author Comment

by:spartise
Comment Utility
It turns out that this is a dicrepancy between visual studio 2003 and 2008.  since the control was added in the 03 version, it needed to be re-added in the 08 version for it to work.
0
 

Accepted Solution

by:
spartise earned 0 total points
Comment Utility
The answer, more specifically:

printDialog1.UseEXDialog = true;

Gets or sets a value indicating whether the dialog should be shown in the Windows XP style for systems running Windows XP Home Edition, Windows XP Professional, Windows Server 2003 or later.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

763 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

6 Experts available now in Live!

Get 1:1 Help Now