SAP Knowledge Base Article - Preview

1951502 - saveAs() method returns -1 for PDF format in PB .NET Web forms and/or Web services within Windows 7 Professional or Enterprise


On Windows 7 32-bits (Professional or Enterprise) the datawindow method dw.SaveAs() in PDF! format always fails with -1 response in PB .NET Web Forms and/or PB .NET Web Services. The same method call works fine in Windows 2003.



  • PowerBuilder 12.5 onwards
  • Windows 7 32-bit Professional or Enterprise
  • Corresponding IIS (Internet Information Services) installed on Windows 7 environment (where PB Web Forms or Web Services application will be installed on)
  • Acrobat Distiller ADIST5.inf printer driver that comes with PowerBuilder 12.5 installation
  • Ghostscript 8.71 (according to PowerBuilder manuals)


PowerBuilder 12.5 ; SAP PowerBuilder 12.5 ; Sybase PowerBuilder 11.5 ; Sybase PowerBuilder 12.0


PowerBuilder,saveAs,PDF,webform,web,form,webservices,services,IIS,deploy,ghostscript,adobe,PDF! , KBA , BC-SYB-PB , PowerBuilder , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.