PowerBuilder 12.5 Classic PDF SaveAs creating files of 0 size on Win7 x64

somnath picture somnath · Apr 6, 2013 · Viewed 9.7k times · Source

Platform:

Windows 7 x64

PB 12.5 Classic

Ghostscript 9.07 (both x32 and x64 are installed)

HP Laserjet PS printer installed as "Sybase DataWindow PS"


Datawindow's Data Export tab has Format to configure: PDF and Method: Distill. Both the checkboxes "Distill custom postscript" and "Print using XSLFOP" are unchecked.

I click File | Run/Preview and File | Save Rows As and select PDF as save as type and enter a pdf file name and click on Save. It says in a message box that Save Rows As failed. I find the file has been created on disk but with size 0 bytes.

I have noticed that the manual states this can happen if Ghostscript is not installed. However, I have installed first x64 and then also x32 versions of Ghostscript. I installed x64 cause somewhere in the PB manual it mentioned that I need to install Ghostscript for the platform of the OS and since I am on x64 Win7 I installed x64 Ghostscript. However, it is not working on both.

What could be wrong? Anyone any ideas? I have searched the net and stackoverflow for solutions and everyone seems to be pointing to x32 platform (it seemed to me) as also on XP. My XP installation earlier was working fine. I am now on Win7 x64 and need this to work on it.

TIA

Answer

DARKinVADER picture DARKinVADER · Apr 6, 2013

I think I had the same problem. The problem is in the version of the Ghostscript software:

http://ghostscript.com/pipermail/gs-bugs/2012-July/026615.html

You should uninstall the Ghostscript and reinstall this version: Ghostscript 8.71. You can download it from here:

http://sourceforge.net/projects/ghostscript/files/GPL%20Ghostscript/8.71/ http://sourceforge.net/projects/ghostscript/files/GPL%20Ghostscript/8.71/gs871w64.exe/download

After this it should work :)

Good luck!

Br. Gábor