Solved

PrintDialog use on windows server 2008

Posted on 2008-10-08
4
295 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

773 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