Solved

PrintDialog use on windows server 2008

Posted on 2008-10-08
4
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

751 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