Free Code


All examples include a PB10.5 version and a PB12.6 version if there are Windows API functions. The PB12.6 versions are verified to work in 64bit. If you find this code really useful and would like to donate, click the PayPal button in the upper right corner.

Click here to download an installer for all the free code samples: WebExamples
Click here to download an installer for the old PB8 & PB10 samples: WebExamplesOld


Adapter  

PrinterInstall

This program will install the 'Sybase DataWindow PS' printer which is used by the DataWindow SaveAs PDF! functionality. When you run it, it prompts you to select a Setup .inf file. Choose the one in your Ghostscript installation's 'lib' folder and the printer will be installed for you.

Click here to download the PowerBuilder sample: PRINTERINSTALL.ZIP. The zip file contains a PDF which walks you through the process of installing Ghostscript and the virtual printer on Windows 10.

The offical Ghostscript downloads can be found on Ghostscript.com. There is a link at the bottom of the page that allows you to download prior versions.

Win API Functions used:

CloseHandle
CreateProcess
WaitForSingleObject

——— Last updated 02/14/2019 ———

Amyuni  
BCrypt  
Bitmap  
Canvas  
ChooseFont  
Colors  
ControlPanel  
Cryptoapi  
DisplayIcon  
DWGridXP  
DynamicMenus  
EmailPOP3  
EmailSMTP  
Filesys  
FTPClient  
GetFileName  
GetFolder  
GetURL  
Icontray  
ImageList  
Indirect  
LDAPQuery  
LineCount  
MessageBox  
Mutex  
ODBC API  
OSVersion  
Outlook  
ParentWindow  
PBDebug  
PBEditor  
Ping  
PrinterInstall  
PSRViewer  
ResizeResponse  
RunAndWait  
Send SMS  
SizeOf  
Splitbars  
Statbar  
String Class  
USPS Barcode  
WebBrowser  
WinHTTP  
Winsock  
XmlHttp  
Zlibwapi