1. Nancy Wu
  2. PowerBuilder
  3. Thursday, 18 January 2018 05:01 AM UTC

Hi there,

I'm so exciting that PB2017 allows to save datawindow context as PDF! 

Could anyone tell me why it saves multiple copies into the same PDF file although there is only one record retrieved?

Thanks for your kindly support!

Nancy

 

 

 

Nancy Wu Accepted Answer Pending Moderation
  1. Thursday, 18 January 2018 17:24 PM UTC
  2. PowerBuilder
  3. # 1

I created a RichText datawindow and when I use dw_1.SaveAs('C:\temp\test.pdf', PDF!, false). The entire datawindow contain was output to the test.pdf file with formatting properly. However, the pdf file contains many duplicated copies(81 pages) instead of one (9 pages). What am I missing?

Thanks for help!

Nancy

Comment
  1. Ravi Nath
  2. Friday, 19 January 2018 16:32 PM UTC
Hi Nancy,



 



This is a bug in the RTE control implementation in PB 2017. I don't they have really done testing on it before they released it. I have already pointed this out in the forum before. Desperately waiting for R2 release as my product is not functional without it!!!

  1. Helpful
  1. Nancy Wu
  2. Monday, 22 January 2018 17:01 PM UTC
Hi Mark,



 



It's easy to reproduce the bug by taking the following few steps:



 



1) create a RichText style datawindow (dw_1)



2) put more than one page contain into it (data or text).



3) put a command button with scrip: dw_1.SaveAs('C:\temp\test.pdf', PDF!, true)



4) open the test.pdf file and you will multiple copies with the file.



 



Nancy

  1. Helpful
  1. Govinda Lopez @Appeon
  2. Monday, 22 January 2018 20:16 PM UTC
Hi Nancy,



 



I see you opened a ticket for this (#664). I have updated info on the ticket. We are working on your case.



 



 



Regards,

  1. Helpful
There are no comments made yet.
Ashutosh Varshney Accepted Answer Pending Moderation
  1. Thursday, 18 January 2018 16:30 PM UTC
  2. PowerBuilder
  3. # 2

Your question is not clear. Maybe you can post some examples?

Usually when the output is not as expected, there might be some design issue. Some causes include column autosize and overrun which might cause it to run into another page. I find that setting a box border for everything helps a lot in trying to debug such issues.

Hope that helps.

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.