2012-10-03 21 views
0

打印在Win7 x86,Windows XP上運行。 在Windows 7 x64上,此代碼不執行任何操作。它也沒有拋出任何的消息。 我不知道,谷歌沒有幫助。 也許有人有這個問題的經驗? 謝謝。new WinForms.PrintDialog()在Windows 7上不做任何事情x64

System.Drawing.Font printFont = new System.Drawing.Font("Courier New", 10); 
       DataTablePrintDocument printDoc = new DataTablePrintDocument(this, printFont); 

       WinForms.PrintDialog dlg = new WinForms.PrintDialog(); 

       WinForms.DialogResult result = dlg.ShowDialog(); 

回答

1

嘗試將系統字體恢復爲原始狀態,這解決了我前一段時間的問題。 ;)

因爲它在x86和xp中工作,所以沒有編碼錯誤。

+0

嗨,你的意思是恢復字體? – user1283791

+0

這將幫助您找到還原按鈕:http://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/how-to-restore-windows-7-default-fonts/73a8eb3e-3189 -4514-b87c-18fcdca4fe26 – Rob

+0

謝謝,但在Windows上更改字體不是解決方案。我正在構建必須在任何win7 x64計算機上工作的應用程序。 – user1283791

相關問題