Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PrintDialog use on windows server 2008

Posted on 2008-10-08
4
Medium Priority
?
311 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

886 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