cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating from Powerbuilder 12.5 to Powerbuilder 12.6 64 bit - Printing

Former Member
0 Kudos

Hello,

we have a Powerbuilder 12.5 license and are currently evaluating to migrate our code to Powerbuilder 12.6. 64 bit.

We have the following code in the application:

function long PFC_PrintDlg (ulong hwnd, ref s_printdlgattrib printstruct) library "pbvm90u.dll" alias for "PFC_PrintDlg;Ansi"

Does someone know how to migrate the printing functionality to Powerbuilder 12.6 64 bit.

Many thanks and regards

Klaus

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

That is a remnant of the PowerBuilder 9 version of PFC.

You should go to PFC - Home and download the latest 12.5 build.

Former Member
0 Kudos

Hi Roland;

Great point! 

FYI: I hear of so many PB developers just migrating their old PFC layer forward without updating the base classes until they get into issues like Klaus has posted.

FWIW: Even better ...  the 12.6 version:  http://pfc.codeplex.com/SourceControl/latest

Regards ... Chris

Former Member
0 Kudos

I rarely use PFC but I seem to remember that the external function mentioned by the OP was replaced by a standard PowerScript function in a later version of PowerBuilder. I can't remember what it was though.

Former Member
0 Kudos

I figured it out, for PB 10 they added a second argument to the DataWindow Print function to allow for showing the print dialog.

Former Member
0 Kudos

Yes, that sounds right.