1. Daniel Vivier
  2. PowerBuilder
  3. Tuesday, 28 January 2020 19:51 PM UTC

A user has just reported that if they display a report, then print only a range of pages from it to their real printer, selected using the Print dialog, displayed because the print was done as dw.Print(TRUE, TRUE), then do a save to PDF (which uses NativePDF) it saves the same range of pages!

I can replicate the same issue.

Is that a bug or a feature? And is it something we can do anything about?

Thanks.

Brad Mettee Accepted Answer Pending Moderation
  1. Wednesday, 29 January 2020 15:24 PM UTC
  2. PowerBuilder
  3. # 1

Once you modify the DW to include a page range, it will remain until removed. I'm pretty sure that when you save to PDF, it's doing an internal PRINT, so that page range should be used. If not, you'd have no way to selectively save pages when saving a PDF.

Comment
  1. Daniel Vivier
  2. Wednesday, 29 January 2020 15:30 PM UTC
Yes, I was just figuring that out for myself Brad. However, what I was not aware of was that setting a page range in the Print dialog box displayed when you use dw.Print(TRUE, TRUE) also sets dw.Object.DataWindow.Print.Page.Range, even though it was not set explicitly in code.

So that means that this is really a design decision for us: do we leave it the way it is, to give users an option (though one they might not have expected!) to first directly Print a range of pages, then save that same range of pages to PDF, or do we say that a save to PDF is always the entire document.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 29 January 2020 00:47 AM UTC
  2. PowerBuilder
  3. # 2

Please open a support ticket for this and provide steps to reproduce.

Comment
  1. Daniel Vivier
  2. Wednesday, 29 January 2020 15:31 PM UTC
Thanks, Armeen, but if you see Brad Mettee's comment above, and my reply, you will see that I have basically decided it is a feature I didn't understand, and one I can choose to work around, or not!
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 29 January 2020 19:05 PM UTC
Ok got it. Thanks for not opening an unnecessary support ticket!
  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.