1. RAJESH POOJARI
  2. PowerBuilder
  3. Monday, 14 January 2019 20:33 PM UTC

Hi Gurus,

Migrating PB12.6 to PB2017R3 (windows 10 os) - Issue with appeon RichText datawindow multiple pages

After PASTERTF() to RICHTEXT datawindow. its visible having two pages

But datawindow function returns pagecount = 1 - which is wrong.

ls_ret = idw_Letter.Describe ("evaluate('pagecount()',1)")

 

also......PRINTDATAWINDOW() prints only one page to acrobat pdf 2017

 

the same code was working fine in PB12.6

any changes needs to be done PB2017R3 ...?

Attached: richtext datawindow screen for both pages.

Thanks,

Rajesh

 

 

 

 

 

 

 

 

 

 

Attachments (2)
Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 14 January 2019 21:28 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Rajesh;

  It could be due to the new 3rd party control "under the hood" that PB uses for the RTE Control and RTF DW features. In PB 2017Rx the control was changed to the TE control. Whereas in PB 12.6, SAP used the TX 3rd party Control instead.

  The good news is that PB2017R3's MR01 (Maintenance Release #01) is due out in a few weeks. This first MR now includes both the TE & TX Controls and you will be able to choose which one your App uses in the Application Painter. I suspect that returning your App to using the TX Control in MR#01 might resolve this issue.

Regards ... Chris

Comment
  1. Patrick Sohr
  2. Tuesday, 9 April 2019 07:28 AM UTC
Hallo,



we have the same problem like Rajesh. Additionally we want to export the RichText Datawindow as PDF (native PDF). If we use Built-in Rich Edit Control we can create PDFs, but not print multiple pages. If we use TX Control, we can print multiple pages, but not create PDFs (native PDF). Is there a solution to enable both?



Regards



Patrick
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 9 April 2019 15:18 PM UTC
Hi Patrick;



Unfortunately, one PB application cannot use both the TE and TX controls at the same time. You have to choose one or the other from within the Application Painter before you build your App's EXE. I would like to suggest that you open a Support Ticket on the PDF issue for the TX control and another Support Ticket on the multi-page issue for the TE control.



I do have a "workaround" solution idea for you ...



1) Use the TX control that allows you to edit & print OK from the RTE control.

2) Create a simple PB App EXE that takes a file name as an argument in the CommandLine argument. I'll call it "PDFMaker.exe" for my example purposes.

3) When the TX control wants to produce a PDF ...

a) Export the RTE content into an RTF file

b) Call the PDFMaker EXE with the RTF file name as an argument

4) In the PDFMaker EXE app, use the TE control and import the RTF file contents. Then create the PDF file from within that app.



HTH

Regards ... Chris
  1. Helpful
There are no comments made yet.
RAJESH POOJARI Accepted Answer Pending Moderation
  1. Monday, 14 January 2019 21:40 PM UTC
  2. PowerBuilder
  3. # 1

As per your suggestion will wait for  PB2017R3's MR01 (Maintenance Release #01)

Thanks Chris.

Comment
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.