Solved

PrintDialog use on windows server 2008

Posted on 2008-10-08
4
299 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
ID: 22675292
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
ID: 22678029
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
ID: 22678081
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
ID: 22727740
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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

838 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