analytic

analytic

  • NA
  • 32
  • 0

printDialog 86 bit machine

Jul 29 2009 3:13 PM
Thanks for the update about 64 bit machine. The program I am trying to do is simple just open a dialog box, nothing else at the moment, with code as follows using System; using System.Drawing; using System.Drawing.Printing; using System.Windows.Forms; namespace TestPrinterClass { class TestPrinter { private static PrintDialog pdialog; private static PrintDocument pd; static void Main() { bool OK; OK = testPrintDialogue(); } static bool testPrintDialogue() { pd = new PrintDocument(); pdialog = new PrintDialog(); DialogResult r; bool ok = true; pdialog.UseEXDialog = true; pdialog.Document = pd; r = pdialog.ShowDialog(); if (r == DialogResult.OK) ok = true; else ok = false; pdialog.Dispose(); return ok; } } } I have an Intel 68 bit machine with VS 2008 and the above code does not work. However, on my other 32 bit machine with VS 2008 it works perfectly. What can I do??