Web Connection
Error sending report to PDF
Gravatar is a globally recognized avatar based on your email address. Error sending report to PDF
  Stein Goering
  All
  Aug 7, 2015 @ 07:08am
Trying to send report output to a PDF from within my WC app. We have a license for FRX2Any so I'm using their tools.

I have a prototype that works fine on my development system, but attempting the same code on the server generates the error "Printer not ready". If I switch to File Mode on the server the same routine generates the PDF without a problem.

I'm thinking this must be a permissions issue - the COM process runs under the SYSTEM account but in File mode I was logged in as an administrator. So somewhere there must be a process for which SYSTEM needs elevated permissions, but I'm not sure where to look for it. The FRX2ANY files (FRX2Any.app and iSEDQuckPDF.dll) both show SYSTEM with Full Control.

Server OS is 2008 R2. Any suggestions would be appreciated.

--stein

Gravatar is a globally recognized avatar based on your email address. Re: Error sending report to PDF
  Rick Strahl
  Stein Goering
  Aug 7, 2015 @ 08:36am
Where are you generating the file to? If you're using a path in the User Profile that path might not be there in System (SYSTEM doesn't have AppData/Documents etc.).

The easiest way to test and check this out is by switching the Application Pool to your Admin account and see if that works in file mode. If it does you know its the permissions. You might also have to enable the flag that provides the User Profile in the AppPool.

+++ Rick ---



Trying to send report output to a PDF from within my WC app. We have a license for FRX2Any so I'm using their tools.

I have a prototype that works fine on my development system, but attempting the same code on the server generates the error "Printer not ready". If I switch to File Mode on the server the same routine generates the PDF without a problem.

I'm thinking this must be a permissions issue - the COM process runs under the SYSTEM account but in File mode I was logged in as an administrator. So somewhere there must be a process for which SYSTEM needs elevated permissions, but I'm not sure where to look for it. The FRX2ANY files (FRX2Any.app and iSEDQuckPDF.dll) both show SYSTEM with Full Control.

Server OS is 2008 R2. Any suggestions would be appreciated.

--stein


Gravatar is a globally recognized avatar based on your email address. Re: Error sending report to PDF
  Stein Goering
  Rick Strahl
  Aug 7, 2015 @ 07:22pm
Output files are directed to a temp folder to which SYSTEM has full control rights.

And it did work when I set the App Pool identity to the admin account. So I know something needs extended permissions but I still don't know what.

--stein


Where are you generating the file to? If you're using a path in the User Profile that path might not be there in System (SYSTEM doesn't have AppData/Documents etc.).

The easiest way to test and check this out is by switching the Application Pool to your Admin account and see if that works in file mode. If it does you know its the permissions. You might also have to enable the flag that provides the User Profile in the AppPool.

+++ Rick ---



Trying to send report output to a PDF from within my WC app. We have a license for FRX2Any so I'm using their tools.

I have a prototype that works fine on my development system, but attempting the same code on the server generates the error "Printer not ready". If I switch to File Mode on the server the same routine generates the PDF without a problem.

I'm thinking this must be a permissions issue - the COM process runs under the SYSTEM account but in File mode I was logged in as an administrator. So somewhere there must be a process for which SYSTEM needs elevated permissions, but I'm not sure where to look for it. The FRX2ANY files (FRX2Any.app and iSEDQuckPDF.dll) both show SYSTEM with Full Control.

Server OS is 2008 R2. Any suggestions would be appreciated.

--stein



Gravatar is a globally recognized avatar based on your email address. Re: Error sending report to PDF
  Rick Strahl
  Stein Goering
  Aug 7, 2015 @ 08:29pm

It's probably the Print Manager. VFP reports still go through the Windows Printing system and if I recall Print Manager doesn't have rights by default or needs a user profile at least.

+++ Rick ---



Output files are directed to a temp folder to which SYSTEM has full control rights.

And it did work when I set the App Pool identity to the admin account. So I know something needs extended permissions but I still don't know what.

--stein


Where are you generating the file to? If you're using a path in the User Profile that path might not be there in System (SYSTEM doesn't have AppData/Documents etc.).

The easiest way to test and check this out is by switching the Application Pool to your Admin account and see if that works in file mode. If it does you know its the permissions. You might also have to enable the flag that provides the User Profile in the AppPool.

+++ Rick ---



Trying to send report output to a PDF from within my WC app. We have a license for FRX2Any so I'm using their tools.

I have a prototype that works fine on my development system, but attempting the same code on the server generates the error "Printer not ready". If I switch to File Mode on the server the same routine generates the PDF without a problem.

I'm thinking this must be a permissions issue - the COM process runs under the SYSTEM account but in File mode I was logged in as an administrator. So somewhere there must be a process for which SYSTEM needs elevated permissions, but I'm not sure where to look for it. The FRX2ANY files (FRX2Any.app and iSEDQuckPDF.dll) both show SYSTEM with Full Control.

Server OS is 2008 R2. Any suggestions would be appreciated.

--stein





© 1996-2024