Questions? Feedback?powered byOlark live chat software
Bug 2447

NativePDF RichEdit 14 March, 2019

Torsten Franke
07 March, 2019
Product: PowerBuilder Category: DataWindow
Version: 2017 R3 Publishing: Public
Status: Scheduling Priority: P2
Classification: Appeon bug Resolution:
Ken Guo 14 March, 2019
Hi Torsten,

Thanks for providing environment via TeamViewer for us to analyze.
We can reproduce it on our end and will do further research to figure it out. We will keep you posted about the progress.
Currently, I found that it is very easy to reproduce it under Spain OS.

Regards,
Ken
Torsten Franke 13 March, 2019
Hi Mark,

You can easily access the sample application via TeamViewer.
We had to restart the PC because of Windows updates, attached the new TeamViewer ID and password

ID: 1219922589
PW: 699jjf
Torsten Franke 13 March, 2019
Hi Mark,

we have teamviewer open for you.

Teamviewer 14: 

ID: 1219922589
PWD: s2i7q3

Good luck
Torsten
Mark Lee 12 March, 2019
Hi Torsten,

Apologize for not being able to join the meeting because of the time difference.
Normally we are available in Hong Kong Time (GMT +8):
1.       Morning: 9 am -11:30 am (8 pm – 10:30 pm (Berlin Time)
2.       Afternoon: 1 pm - 5 pm (12 am – 4 am (Berlin Time)
 
Please let us know which time slot is suitable for you so we can reschedule another one. 
 
Appreciate your understanding. 

Regards,
Mark Lee
Torsten Franke 12 March, 2019
Hi Mark,

we have installed a PC with Windows for you.

Teamviewer 14: 

ID: 1219922589
PWD: 322ecc

Good luck
Torsten





1219922589
Mark Lee 12 March, 2019
Hi Torsten,

If you are available, let's debug this issue now.
Please let us know when you can make the session and which tool you'd like to use for this session.(teamviewer or gotomeeting)

Regards,
Mark Lee
Torsten Franke 12 March, 2019
Hi Mark,

this issue always occurs to us when saving a report as NativePDF.
If it worked somewhere with us, then we would have a starting point.
Mark Lee 12 March, 2019
Hi Torsten,

This issue hasn't occurs at PB IDE 2017 1880 in Windows 10 German 64-bit?
Torsten Franke 12 March, 2019
1.

- Windows Server R2 Standard German 64-bit
- Windows 10 German 64-bit

2.

occurs at PB IDE and runtime
occurs with built-in tx control and rich edit control

3. occurs at PB IDE 2019 BETA R2
Torsten Franke 12 March, 2019
1.

- Windows Server R2 Standard German 64-bit
- Windows 10 German 64-bit

2.

occurs at PB IDE and runtime
occurs with built-in tx control and rich edit control

3. occurs at PB IDE 2019 BETA R2
Mark Lee 12 March, 2019
Hi Torsten,
 
1 . Please let us know which version of the OS you are using on this machine (for example, 32-bit Windows 7 English).
2.  We noticed that you are using Windows Server 2008R2, which is not supported by PB 2017 IDE. You may refer to the below help for details:  https://www.appeon.com/support/documents/appeon_online_help/pb2017r3/installation_guide_for_pb/ch03s02.html    
  
So we’d suggest you to verify the issue on a Windows 7 or Windows 10.
 
Please also let us know if it occurs only in PB IDE or it occurs also at runtime.

Regards,
Mark Lee
Chris Pollach 11 March, 2019
Hi Mark;

  FWIW: Note that early on in this ticket, I was able to reproduce Torsten's issue with the NAtivePDF option creating an extra space. However, switching over to GhostScript cured the problem (work around). 

Regards ... Chris
Torsten Franke 11 March, 2019
Hi Mark,

i reinstalled the powerbuilder.
I've tried the example app on several computers and always the system inserts a space in front the text.

??
Torsten Franke 11 March, 2019
Hi Mark,

i reinstalled the powerbuilder.
I've tried the example app on several computers and always the system inserts a space in front the text.

??
Mark Lee 11 March, 2019
Hi Torsten,

I saw the Built on Jan 31 2019 not is Jan 26 2019! (Please see the attachment for reference.)
Can you download it again, and reinstall it?

Regards,
Mark Lee
Mark Lee 11 March, 2019
download
Mark Lee 11 March, 2019
Hi Torsten,

Yes, I create the file with NativePDF(Please see the attachment for reference.)! Very strange!
Are you install PB runtime Packager 1858 in the same machine? if yes, please uninstall it.

Regards,
Mark Lee
Mark Lee 11 March, 2019
testpdf
Torsten Franke 11 March, 2019
Hi Mark,

yes, we use PB Universal Edition 2017 R3 Build 1880 - Built on Jan 26 2019 
Did you create the file with NativePDF ? strange !!
Mark Lee 11 March, 2019
Hi Torsten,

Sorry  that we did not reproduce the issue. Please see the attachment for reference.

Is your current PB version 2017 R3 build #1880? If not, please try to upgrade it to this latest build and see if it works.

You may download and install this latest release from our Downloads portal at
https://www.appeon.com/user/center/index?menu=download (requires login) or you
may manually go to the Downloads portal from Login (to the Appeon Website) >
User Center (under your login user icon) > Downloads.

Upgrade Notes
If you are currently using PowerBuilder 2017 R3 (build 1858), please directly
apply this MR (build 1880) on the top of your current PowerBuilder 2017 R3.
If you are currently using PowerBuilder 2017 or 2017 R2, please first upgrade
your current PowerBuilder 2017 or 2017 R2 to PowerBuilder 2017 R3 LTS Build
1858 and then apply this MR (build 1880).

Regards,
Mark Lee
Mark Lee 11 March, 2019
test result
Torsten Franke 11 March, 2019
2019-03-11 pdf_save.png (10KB)

Hi Mark,

But this is not the problem.  
When saving the report as PDF the system inserts a space in front the text [Sehr].

I have marked you the problem in the attachment.


Regards,
Torsten
Mark Lee 11 March, 2019
Hi Torsten,

We suggest that you set the datawindow paper.size instead of using the default(0).
Currently the default print size for NativePDF and GhostScript is using international standard and American standard respectively. The different sizes causing the issue you get.
You can try the following code to set the print size:
For NativePDF:
dw_1.Object.DataWindow.Export.PDF.NativePDF.UsePrintSpec = 'Yes'
dw_1.Object.DataWindow.Export.PDF.Method = NativePDF!
dw_1.Object.DataWindow.Print.Orientation = 2 
dw_1.Object.DataWindow.Print.Paper.Size = 1
dw_1.saveas("",PDF!,TRUE )
 
For GhostScript:
dw_1.modify(  "dataWindow.export.pdf.method = Distill!" )
dw_1.Object.DataWindow.Printer = "Ghostscript PDF"
dw_1.Object.DataWindow.Export.PDF.Distill.CustomPostScript = "Yes"
dw_1.Object.DataWindow.Print.Orientation = 2 
dw_1.Object.DataWindow.Print.Paper.Size = 1
dw_1.saveas("",PDF!,TRUE )
 
Link for your reference:
https://www.appeon.com/support/documents/appeon_online_help/pb2017r3/pbug/ch18s03.html 
 
If you still have the issue, please provide a new test case for us to verify and analyze. Thanks!

Regards,
Mark Lee
Chris Pollach 08 March, 2019
Hi Torsten;

  <My Bad> ... yes, I see that you are using the NativePDF option.

  When I change the DWO over to using GhostScript, the produced PDF does not have the extra CR (space). So it definitely looks like a NativePDF issue.

  I will now transfer this ticket over to our main Support/Engineering team for their review and recommendations for a fix.

Regards ... Chris
Torsten Franke 08 March, 2019
Thanks, Chris.

But this is not the main problem.  

What I would like to solve is a problem with the display of the text: When saving the report as PDF the system inserts a space in front the text [Sehr].

If you display or printed the datawindow -> 'Hallo' and 'Sehr' started on the same Positionen

?? not the NativePDF-Option ?
Datawindowobject -> d_ Export.pdf.method displays "NativePDF" 
"export.pdf(method=2"

Thanks a lot
Torsten
Chris Pollach 07 March, 2019
Landscape PDF test
Chris Pollach 07 March, 2019
Hi Torsten;

  The reason this is happening (and its normal DW behaviour) is that the RTE column is wider than an 8.5 x 11 sheet of paper and thus the DWO wraps the printed output. I say printed, because you did not set the NativePDF option in the DWO - so the PDF generation defaulted to GhostScript (PostScript printer output).

  You can fix this situation bu either changing the DWO's print output to be "Landscape" or turn on the DW Painter's "rulers" and then make sure that the RTE column does not exceed the 8.5" width size.

  I have attached my PDF test from your test App using the Landscape option.

HTH
Regards ... Chris
Torsten Franke 07 March, 2019
PDF.zip (98KB)

When saving as NativePDF, a RichEdit column is moved or gets a frame.

I appended example application.

We often use RichEdit Column within the application and can no longer save it as a PDF.
OS:
Windows Server 2008 R2 
Platform:
32-bit 
Database Type:
Microsoft SQL Server 
Database Version: