1. Michael Quintus
  2. PowerBuilder
  3. Friday, 21 April 2023 18:50 PM UTC

This is an interesting one, but hopefully not too unique. We have a legacy app that a datawindow was is using non-default print specifications. Currently it is set up as Paper Orientation = Landscape (1) and Paper Size = Tabloid 11 x 17 in (3).

The problem arises when a default printer is selected that doesn't have any paper options for that paper size. The result ends up being an all white datawindow of 1 page. Setting the default printer to Microsofts PDF causes the datawindow to load successfully, but it's printing to PDFs rather than a printer.

We've attempted to change the paper size but the datawindow sizing ends up being wrong for the data we're displaying. The problem ends up being the datawindow doesn't fill the parent tab window.

 

Is there any way to separate the datawindow from the default printer to allow the larger print size?

 

We're on PB v2021.

Michael Quintus Accepted Answer Pending Moderation
  1. Monday, 24 April 2023 11:49 AM UTC
  2. PowerBuilder
  3. # 1

Previously the users had an Esker faxing client installed on their machines. With Office 365, we had to go away from this fax driver, so default printers changed from that to a physical printer. The datawindow in question is rarely (if ever) printed. Is there an alternative way to create it if printing isn't a concern?

Comment
  1. Brad Mettee
  2. Monday, 24 April 2023 12:45 PM UTC
If printing is not a concern, then any PDF printer should work fine. If they do need to print, and there's no printer with 11x17 available, how do they get output?
  1. Helpful
  1. Michael Quintus
  2. Monday, 24 April 2023 12:50 PM UTC
Good question :)



I don't think this datawindow was ever built with physical printing in mind, just sized in such a way all the data could be shown. Thanks for the help Brad.
  1. Helpful
There are no comments made yet.
Brad Mettee Accepted Answer Pending Moderation
  1. Sunday, 23 April 2023 13:15 PM UTC
  2. PowerBuilder
  3. # 2

When a datawindow is designed, it's made to fit on a page a certain way. If the original designer used 11"x17" landscape, then that's what's required to actually print the contents of the datawindow. There is no way to separate design requirement from display requirement. PB uses the default printer to render the datawindow before putting it in the datawindow control for display.

If the printer is not available on the system, how will they print the datawindow?

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.