1. Troy Cowan
  2. PowerBuilder
  3. Monday, 11 September 2023 15:52 PM UTC

I am attempting to print the contents of a RichEdit Datawindow to a PDF file. There are about 5400 rows (and thus pages in the PDF) worth of data. When I command the print to start, a useful dialog pops up showing how far along it is: "Preparing x of 5409". After 4809 pages of the 5409 are prepared, the progress stops and never picks back up again.

I brought up the print queue for the Microsoft Print to PDF, and it shows that the Size is 8.98MB/8.98MB. (see attached image).

Am I just running into a limit for the size of PDF that I'm going to be able to print? If so, is there a way to tell ahead of time if a particular print will pass vs fail? Would it be just based on the number of rows, or would it be number of rows * size of row content ?

 

 

Attachments (1)
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 11 September 2023 16:09 PM UTC
  2. PowerBuilder
  3. # 1

Gosh, RTE on datawindows, 30+ years of pain with the combination of the two.

Sorry, can't be of any help here, just remembering why I stay away of anything RTE on top of datawindows.

Good luck!

Comment
  1. Troy Cowan
  2. Monday, 11 September 2023 16:34 PM UTC
Well, I went to the RichText style because when you print it, you get a Page Break per row, which is nice for this report.
  1. Helpful
  1. mike S
  2. Monday, 11 September 2023 20:46 PM UTC
@troy - if that is the only reason you are using RTE (page break per line), you could just setup a group with a page break set on it. the grouping expression could be getrow() (or anything that is different per row) to force the page break per row.

  1. Helpful 1
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 11 September 2023 17:17 PM UTC
  2. PowerBuilder
  3. # 2

Hi Troy;

  What mechanism are you using to handle the generation &  printing of those large PDF file contents?

Regards ... Chris 

Comment
  1. Troy Cowan
  2. Monday, 11 September 2023 17:42 PM UTC
This is literally the extent of the code I'm using to print the datawindow:



dw_1.print(false)
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 11 September 2023 20:14 PM UTC
Then I suspect that the problem might well be in the PostScript printer driver that your App is dependant on for PDF rendering.
  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.