X
點擊此處開啟此網站的行動版。

技術支援討論區

Doing "Microsoft Print to PDF" "a error occurred while printing"

已張貼

I found a solution to my problem, but I just wanted to make the problem/solution available to all FireFox users ... Doing "Microsoft Print to PDF" I was getting "a error occurred while printing". This error also occurred trying to do "Microsoft XPS Document Writer". Using "Process Monitor" (from Sysinternals) found "access denied" entry. This occurred even though I had total security access and ownership too. I had been using a non-default "tmp" user environment variable. I set "tmp" back to the default and the problem went away. The problem was not occurring in the other browsers IE, Edge, or Chrome. Also, reinstalling FireFox did not solve the problem since the "tmp" variable was not affected by the reinstall.

I found a solution to my problem, but I just wanted to make the problem/solution available to all FireFox users ... Doing "Microsoft Print to PDF" I was getting "a error occurred while printing". This error also occurred trying to do "Microsoft XPS Document Writer". Using "Process Monitor" (from Sysinternals) found "access denied" entry. This occurred even though I had total security access and ownership too. I had been using a non-default "tmp" user environment variable. I set "tmp" back to the default and the problem went away. The problem was not occurring in the other browsers IE, Edge, or Chrome. Also, reinstalling FireFox did not solve the problem since the "tmp" variable was not affected by the reinstall.

被選擇的解決方法

Doing "Microsoft Print to PDF" (or "Microsoft XPS Document Writer") gets error message "An error occurred while printing" and file does not get created. This error can occur if the Windows "user" environment variable "TMP" has been changed from the default value. The changed value somehow seems to cause "access denied", but this specific reason for the error is not presented to you. A trace of the error occurring revealed this reason. This error does not occur using one of the other browsers IE, Edge, or Chrome. Changing the TMP variable back to the default (%userprofile%\appdata\local\temp) eliminates the error.

從原來的回覆中察看解決方案 3

額外的系統細節

已安裝的外掛程式

  • Adobe PDF Plug-In For Firefox and Netscape 15.10.20056
  • GEPlugin
  • Google Update
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Next Generation Java Plug-in 11.71.2 for Mozilla browsers
  • Shockwave Flash 20.0 r0
  • 5.1.41212.0

應用程式

  • Firefox 43.0.4
  • 使用者代理:Mozilla/5.0 (Windows NT 10.0; rv:43.0) Gecko/20100101 Firefox/43.0
  • 技術支援網址:https://support.mozilla.org/1/firefox/43.0.4/WINNT/en-US/

擴充套件

  • Adblock Plus 2.7.1 ({d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d})
  • CM Send Link 0.5.1-signed (cmsendlink@loveyland.com)
  • Context Search 0.6.3.1-signed ({902D2C4A-457A-4EF9-AD43-7014562929FF})
  • Element Hiding Helper for Adblock Plus 1.3.6 (elemhidehelper@adblockplus.org)
  • Video DownloadHelper 5.4.2 ({b9db16a4-6edc-47ec-a1f4-b86292ed211d}) (Inactive)
  • WOT 20151208 ({a0d7ccb3-214d-498b-b4aa-0e8fda9a7bf7}) (Inactive)

JavaScript

  • incrementalGCEnabled: True

圖形

  • adapterDescription: NVIDIA GeForce 8400 GS
  • adapterDescription2:
  • adapterDeviceID: 0x06e4
  • adapterDeviceID2:
  • adapterDrivers: nvd3dum nvwgf2um,nvwgf2um
  • adapterDrivers2:
  • adapterRAM: 256
  • adapterRAM2:
  • adapterSubsysID: 00000000
  • adapterSubsysID2:
  • adapterVendorID: 0x10de
  • adapterVendorID2:
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 10.0.10586.0
  • driverDate: 10-13-2015
  • driverDate2:
  • driverVersion: 9.18.13.4192
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'direct2d 1.1', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'direct2d 1.1', u'AzureSkiaAccelerated': 0}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • supportsHardwareH264: Yes
  • webglRenderer: Google Inc. -- ANGLE (NVIDIA GeForce 8400 GS Direct3D11 vs_4_0 ps_4_0)
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Direct3D 11

修改過的偏好設定

其他

  • User JS: 否
  • 輔助功能: 否
ideato 893 個解決方法 6250 個答案

Hello rnthorburn, thanks for sharing with us

Well done, it is great you can solve the issue, please take a moment and write your solution in a reply and mark that reply, YOUR reply as "solution chosen" to help other with similar problem. :-)

(google basically show firefox chosen solutions when you search something in firefox)

thank you :-)

Hello rnthorburn, '''thanks for sharing with us''' Well done, it is great you can solve the issue, please take a moment and write your solution in a reply and '''mark that reply, YOUR reply as "solution chosen" ''' to help other with similar problem. :-) (google basically show firefox '''chosen solutions''' when you search something in firefox) thank you :-)

選擇的解決方法

Doing "Microsoft Print to PDF" (or "Microsoft XPS Document Writer") gets error message "An error occurred while printing" and file does not get created. This error can occur if the Windows "user" environment variable "TMP" has been changed from the default value. The changed value somehow seems to cause "access denied", but this specific reason for the error is not presented to you. A trace of the error occurring revealed this reason. This error does not occur using one of the other browsers IE, Edge, or Chrome. Changing the TMP variable back to the default (%userprofile%\appdata\local\temp) eliminates the error.

Doing "Microsoft Print to PDF" (or "Microsoft XPS Document Writer") gets error message "An error occurred while printing" and file does not get created. This error can occur if the Windows "user" environment variable "TMP" has been changed from the default value. The changed value somehow seems to cause "access denied", but this specific reason for the error is not presented to you. A trace of the error occurring revealed this reason. This error does not occur using one of the other browsers IE, Edge, or Chrome. Changing the TMP variable back to the default (%userprofile%\appdata\local\temp) eliminates the error.
jrachelle13 0 個解決方法 11 個答案

I have this same problem printing, or rather not printing, .pdf files. I looked at the environment variables as suggested and they were already as you suggested. Any other suggestions are definitely welcome.

I have this same problem printing, or rather not printing, .pdf files. I looked at the environment variables as suggested and they were already as you suggested. Any other suggestions are definitely welcome.

提出問題者

First off, I assume you have tried the general printer problem resolution steps - from simple to the most comprehensive.

Until I found a solution for mine, I downloaded and used the free CutePDF Writer.

If, in the long run, you wish to end up using Microsoft Print to PDF, then you'll have to find out what's causing "An error occurred while printing", or, if it's a bug in FireFox, wait for it to be fixed.

In my case, I created another user account and found the error did not occur using that one. If that's your case too, then you may be able to download and use the free Process Monitor (from Sysinternals) to trace the activity of printing from the user account where it fails and the user account where it works. Then compare the results to see where the error appears to occur and thus find the reason for "An error occurred while printing". This is not easy to do. Even if you make the trace window as small as possible there may be 10,000 entries of file and registry events, but Process Monitor does provide editing to help you analyze the data. Again, finding my solution was not easy for me, and that's why I posted it, to possibly be a solution for others.

First off, I assume you have tried the general printer problem resolution steps - from simple to the most comprehensive. Until I found a solution for mine, I downloaded and used the free CutePDF Writer. If, in the long run, you wish to end up using Microsoft Print to PDF, then you'll have to find out what's causing "An error occurred while printing", or, if it's a bug in FireFox, wait for it to be fixed. In my case, I created another user account and found the error did not occur using that one. If that's your case too, then you may be able to download and use the free Process Monitor (from Sysinternals) to trace the activity of printing from the user account where it fails and the user account where it works. Then compare the results to see where the error appears to occur and thus find the reason for "An error occurred while printing". This is not easy to do. Even if you make the trace window as small as possible there may be 10,000 entries of file and registry events, but Process Monitor does provide editing to help you analyze the data. Again, finding my solution was not easy for me, and that's why I posted it, to possibly be a solution for others.
jrachelle13 0 個解決方法 11 個答案

Thank you for the quick reply. You are right to assume I've tried the complete range of troubleshooting that I've found. I plan to try what you've suggested. Appreciate the help.

Thank you for the quick reply. You are right to assume I've tried the complete range of troubleshooting that I've found. I plan to try what you've suggested. Appreciate the help.

由 jrachelle13 於 修改

RapierWit 0 個解決方法 2 個答案

What a joke. All I want to do is print a form I found on the internet. http://cdn.worksheetfun.com/wp-content/uploads/2016/02/wfun16_numberchart_1-50_T1_1.pdf I could do instantly with win 3.1

Now I can't print it "an error occurred while printing"? I saved it and now win 10 says it doesn't exist.

What happened to a print function that freaking does something.

I want to print this form. Interrogate the forms properties and do what is necessary to print it. Is it that difficult?

What a joke. All I want to do is print a form I found on the internet. http://cdn.worksheetfun.com/wp-content/uploads/2016/02/wfun16_numberchart_1-50_T1_1.pdf I could do instantly with win 3.1 Now I can't print it "an error occurred while printing"? I saved it and now win 10 says it doesn't exist. What happened to a print function that freaking does something. I want to print this form. Interrogate the forms properties and do what is necessary to print it. Is it that difficult?