1. Roland Smith
  2. PowerBuilder
  3. Wednesday, 17 May 2017 17:14 PM UTC

I have Ghostscript installed and the printer so I can SaveAs PDF! from the IDE and standard apps. From within IIS I get a zero byte file.

I wrote an IIS extension in C that uses PBNI to allow me to run PB code directly from a PBL within IIS. I am trying to save a report to PDF so I can then read it into a blob and return it to the browser. I am suspecting a permissions issue. I am guessing that deploying a .Net component to IIS would have the same issue.

 

Chris Pollach Accepted Answer Pending Moderation
  1. Wednesday, 17 May 2017 19:02 PM UTC
  2. PowerBuilder
  3. # 1

Hi Roland;

   The permissions issue is what I found as well when trying to create a PDF from a PB Classic based Web Service under IIS. I got around the problem in my Web Service framework by using a PowerShell command to shell out from underneath IIS in order to make this feature work.

BTW: I tried all sorts of Application Pool combinations as wel with various permissions - to no avail. Only the PowerShell approach worked for me.

HTH

Regards ... Chris

Comment
  1. Roland Smith
  2. Thursday, 18 May 2017 13:37 PM UTC
Is that code available somewhere?

  1. Helpful
  1. Chris Pollach
  2. Monday, 22 May 2017 16:13 PM UTC
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.