1. Fei Hager
  2. PowerBuilder
  3. Friday, 5 October 2018 16:10 PM UTC

Hello,

I'm using PB2017 R3 Build 1868. We have a Report DW in Graph format, the datawindow is set to saveas NavtivePDF!.

When I run the report directly on PB2017, the DW graph displays correctly as expected, see attached pdf1.

When I save the DW in PDF directly off of PB2017, it gets saved correctly as expected, see attached pdf2.

After I process Full Build and Deploy the workspace into executables, then I run save the same DW in PDF off of executables, the axis text disappeared, see attached fig3.

All procedures are the same, the only difference is running off of PB2017 vs running off of executables.

Could you please help what is causing the issue?

Thank you

Fei

Attachments (3)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 5 October 2018 18:41 PM UTC
  2. PowerBuilder
  3. # 1

Hi Fei;

   Are you sure that the PB Run-Time where you run your App's EXE is the same build as the run-time used with your PB IDE?

   Also, DWO's get their font at run-time from the "default printer" try changing that on the PC Where the EXE is running from.

Regards ... Chris

 

Comment
  1. Fei Hager
  2. Monday, 8 October 2018 20:19 PM UTC
No, we now can only run this on the current machine, any other hope?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 8 October 2018 21:21 PM UTC
No problem ... I was just trying to see if we could isolate this issue to either the O/S or PB first.



The other scenario would be to attach the DW Object source (with some "dummy" data) and let us see if we can run the DWO on W10 or change a setting that solves the issue.

  1. Helpful
  1. Fei Hager
  2. Tuesday, 9 October 2018 03:18 AM UTC
Could you please explain more details on how to "attach the DW object source with some dummy data"? I'm not sure how to start that. thanks.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 9 October 2018 12:38 PM UTC
  2. PowerBuilder
  3. # 2

Hi Fei;

  To save data with any DWO ...

1) Open DW Object painter

2) Navigate to the "Data" pane

3) Use RHMB and "Insert" test data (as required)

4) Use RHMB and then select "ShareData"

5) Save DW object

HTH

Regards ... Chris

 

Comment
There are no comments made yet.
Fei Hager Accepted Answer Pending Moderation
  1. Wednesday, 10 October 2018 14:19 PM UTC
  2. PowerBuilder
  3. # 3

Hi Chris,

I did "ShareData" on the Data view as this, but I'm not sure if I inserted correctly, it didn't solve the problem.

Could you take a look at the attached screenshot and let me know where else I should be looking into? Thanks.

Fei

Attachments (1)
Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 10 October 2018 16:49 PM UTC
Normally, remote session interaction is done with our Appeon Support team when they are following a "bug" report. The Community here are volunteers and not full time support technicians.
  1. Helpful
  1. Fei Hager
  2. Wednesday, 10 October 2018 16:53 PM UTC
Understand, then please suggest how to use RHMB to share the datawindow with you. Or any other possible ways so it's more visible to you. Thank you very much for your consistent help.

Fei
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 10 October 2018 17:03 PM UTC
Use the RHMB on the DWO in the IDE's System Tree (or Library Painter). Then choose the "Export" option. That will generate a xxxxx.SRD text based file. Now attach that to your next Community post.
  1. Helpful
There are no comments made yet.
Fei Hager Accepted Answer Pending Moderation
  1. Friday, 12 October 2018 15:18 PM UTC
  2. PowerBuilder
  3. # 4

Hello Chris,

 

I have attached a dummy graph DWO that represents my DWO which is causing the category axis disappearing in PDF export issue. Please advise if there is any place I can change that may help solving this case.

Thank you

Fei

Attachments (1)
Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 13 October 2018 01:49 AM UTC
  2. PowerBuilder
  3. # 5

Hi Fei;

  Thank you for the test DW graph object! I did not have any issues producing the PDF and loosing any axis information either in a 32bit, 64bit or m-code compile.

  However, changing the default printer before the SaveAs ( ) made all the world of difference (and change of features) - for example:

Printer#1

Printer#2:

HTH

Regards ... Chris

 

 

 

Comment
  1. Chris Pollach @Appeon
  2. Monday, 15 October 2018 16:57 PM UTC
That is the strange part ... I built M-Code, P-Code (32 & 64bit) EXE's and then ran them on a few different W10 PC's. I all cases, the Axis was OK. So I am not sure what is going on in your environment to cause this.
  1. Helpful
  1. Fei Hager
  2. Monday, 15 October 2018 17:24 PM UTC
The Axis text should take the values from our Oracle 12 database backend. In the dummy script I provided, the category axis text should show "GBP", "USD", "EUR", etc., not "A", "B", "C"...

Is there any possible reason why the axis text DOES take from the backend database when running from PB, but NOT from the executables?

Thanks again,

Fei
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 15 October 2018 17:36 PM UTC
I just added my own test data to the graph's DWO's internal primary buffer.



I just changed the test data to yours and no change - the axis display values were fine.
  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.