1. Ivan Aase
  2. PowerBuilder
  3. Tuesday, 3 March 2020 07:11 AM UTC

Hi,

Does anybody have any solution regarding printing problem in pb2019 ver.2170 ?

Seems like there is only one blank (white) paper coming from printing.

Last versjon we get this working is pb 2017 ver.1880

Hope that somebody has one solution, but if not we hase to get back to 2017 ver.1880

simple code is:
Choose Case ipo_printobject.typeof( )
              Case datawindow! // uc_datawindow
                       //..do something..
              Case datastore! // uo_datastore
                     //..do something
              Case window! // w_global
                     w_ref = ipo_printobject
                     il_printjobnumber = printopen( is_jobtitle )
                     w_ref.print( il_printjobnumber, 0, 0 )
                     printclose( il_printjobnumber )
              Case Else
                    //..do something default
End Choose

 

regards

Ivan Aase

Andy Preman Accepted Answer Pending Moderation
  1. Monday, 9 March 2020 17:46 PM UTC
  2. PowerBuilder
  3. # 1

Chris,

Does this new DLL also work for PB2019 R2 Beta?

I have the same issue where it only prints a blank page.  I tried the new DLL and all I get when starting the IDE is entry point errors. See attached.

Thanks,

Andy

Attachments (4)
Comment
  1. Michael Kramer
  2. Monday, 9 March 2020 18:14 PM UTC
Hi Andy, In general DLL for PB 2019 GA does not work with PB 2019 R2 due to added functionality.

I expect PB 2019 R2 release to production includes same fix in case build #2279 (customer beta) has same issue.
  1. Helpful
  1. Andy Preman
  2. Monday, 9 March 2020 18:22 PM UTC
Michael - Thanks for the info
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 9 March 2020 18:51 PM UTC
Hi Guys, Yes - The PB2019 R2 GA release should have the proper Print() fix included. Please do not use this DLL with R2 beta.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 3 March 2020 19:17 PM UTC
  2. PowerBuilder
  3. # 2

Hi Ivan;

   This is a known bug in PB 2019 and relates to ticket #4123.

Please proceed as follows:

1) Download the "PBSHR190.DLL" replacement DLL (attached ZIP)

2) Close your PB 2019 IDE.

3) Rename your existing "PBSHR190.DLL" to ""PBSHR190_Old.DLL"

4) Unzip the "PBSHR190.DLL" Zip file and copy it to your PB2019 installation's "Shared" folder.

   Example: Mine is ...  C:\Program Files (x86)\Appeon2019\Shared\PowerBuilder

5) Restart the PB IDE and now your App's Print Window logic should now work OK (did for me)

Note: If you have any PB 2019 App EXE's deployed, please replace the "PBSHR190.DLL"  on their machine with the new one.

HTH

Regards ... Chris

 

Attachments (1)
Comment
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Tuesday, 3 March 2020 11:03 AM UTC
  2. PowerBuilder
  3. # 3

Following code is working fine for me in PB 2019 R2 #2279 (customer beta)

long job
job = PrintOpen("Print This Window", true)
parent.Print(job, 0, 0)
PrintClose(job)
Comment
  1. Michael Kramer
  2. Tuesday, 3 March 2020 12:11 PM UTC
Hi Ivan, Works just as fine when I use ..., false

My Windows version is 10.0.19041.113 <== Current slow ring insider preview of soon to be released "2020 H1".
  1. Helpful
  1. Michael Kramer
  2. Tuesday, 3 March 2020 12:13 PM UTC
Since I upgraded to PB 2019 R2 I don't have a PB 2019 GA, #2170 available to test. Sorry.

I tried several print destinations like MS PDF and print to OneNote. Physical printer in my DK apartment 800 km away.
  1. Helpful
  1. Michael Kramer
  2. Tuesday, 3 March 2020 13:44 PM UTC
Forgot detail: I'm running Win10 Pro.
  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.