Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

PFC Print Range selection is disabled – PB Docs 2022 – PowerBuilder Library

PFC Print Range selection is disabled – PB Docs 2022

PFC Print Range selection is disabled

Symptom

  • Application migrated from PowerBuilder 7 to PowerBuilder
    2017.

  • The application is using the PowerBuilder Foundation Class
    (PFC) and Cornerstone.

  • When trying to print, the print dialog window appears, but the
    print range selection is disabled and you cannot specify a print
    range anymore.

Environment

  • PowerBuilder

  • PowerBuilder Foundation Class (PFC)

Reproducing the Issue

  1. Migrate the PB 7 peat example and pfc libraries from the pb7
    to pb2017.

  2. Run report and login.

  3. Select Report/Project Analyzer

  4. Click on the Print cb and the print current page or range of
    pages is greyed out.

Cause

The print functionality in the PowerBuilder 7 pfc libraries calls
an external function pfc_printdlg(ulong hwnd, ref s_printdlgattrib
printstruct) from the pfccom32.dll.

Solution

When migrating an application from PowerBuilder 7 to PowerBuilder
2017, that includes the PFC libraries, it is recommended to use the
latest PFC libraries that are available for download at: www.appeon.com
instead of migrating the existing PFC libraries. The reason is the
latest PFC library contains the latest product features and
changes.

In this case, the customer decided to continue using the PFC
libraries from PowerBuilder 7.

The <dw_control>.pfc_print() command was calling the
pfc_printdlg(ulong hwnd, ref s_printdlgattrib printstruct) from the
pfccom32.dll.

The pfccom32.dll is no longer compatible with PowerBuilder.
Customer commented out the <dw_control>.pfc_print() line and used
the <dw_control>.print(true,true).


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x