1. Nageswara Rao Magapu
  2. PowerBuilder
  3. Tuesday, 31 July 2018 21:05 PM UTC
Hi Team, We are migrating our application from power builder 11.5 to power Builder 2017 R2. Build is successful 
but we see an bug with of_printDlg function which seems to be carried from old versions. can you please look into this.
I have attached the error mesg, Please suggest what to do as work around. *Reproduce Steps: When ever i print a page i get this error. Remark: Print not working at all

I have attached the error message. please help.
Attachments (1)
hp printer offline windows 10 Accepted Answer Pending Moderation
  1. Wednesday, 19 September 2018 06:02 AM UTC
  2. PowerBuilder
  3. # 1

With your code I can get the DC of the default printer : no problem

But with my Printdlg call, it always return PDERR_NODEFAULTPRN

I've test Under an other machine with VS 2013 : same thing

you can also take help from hp printer offline windows 10 and it will help you alot.  

 

Comment
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Wednesday, 1 August 2018 14:21 PM UTC
  2. PowerBuilder
  3. # 2

You must be using a fairly old version of PFC.  I believe at one point had a call into the PowerBuilder runtime to display that dialog and that more recent versions use native PowerScript to do that.

Comment
  1. Nageswara Rao Magapu
  2. Wednesday, 1 August 2018 18:11 PM UTC
Yes, I tried with 2017 PFC but i am getting Illegal data type: pfc_n_cst_Filesrvwin32 error now. please help
  1. Helpful
  1. Nageswara Rao Magapu
  2. Thursday, 2 August 2018 15:39 PM UTC
Can you please help me.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 31 July 2018 21:09 PM UTC
  2. PowerBuilder
  3. # 3

Hi Nageswara;

  Have you replaced your old PFC layer PBL's with the new ones compiled against PB2017?

FYI: https://github.com/OpenSourcePFCLibraries

Regards ... Chris

Comment
  1. Roland Smith
  2. Thursday, 2 August 2018 10:20 AM UTC
The object name is now pfc_n_cst_filesrvunicode.
  1. Helpful
  1. Nageswara Rao Magapu
  2. Thursday, 2 August 2018 15:39 PM UTC
Can you please help me.
  1. Helpful
  1. Bruce Armstrong
  2. Wednesday, 19 September 2018 23:45 PM UTC
>>t i am getting Illegal data type: pfc_n_cst_Filesrvwin32

You would only get that if you used the class incorrectly. The file and platformservices should have been created using the ancestor object in the PFE layer. PFC determines at runtime which descendant class it create. What it would have done if you had done that was create it using n_cst_filesrvunicode class.



See the following for an example: https://community.appeon.com/index.php/qna/q-a/of-getlastwritedatetime-in-pfc

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.