Hi Piotr,

I guess, you are doing what is described in the documentation for PAGE SETUP:

http://doc.4d.com/4Dv16/4D/16.4/PAGE-SETUP.301-3978038.en.html

The idea of "AUTOMATIC SCALED PRINTING" ?

Am I correct, that the goal is to print a list scaled in order to fit on a 
"standard" size (e.g. A4).

If my assumptions are correct, then we are dealing with the problem "a piece of 
paper has limited size, screens have scroll bars".

One solution is indeed to scale. But... as the doc for SET PRINT OPTION says: 
"Be careful, some printers do not allow you to modify the scale..."

The other solution is to distribute the width of the columns of a report (e.g. 
a Listbox) relatively to the available width of the paper.

The available width on paper depends on the printer (paper size, printable 
area) and print options (landscape vs. portrait).

In my component, I have a method that does this kind of printing. The idea at 
the beginning was to have a generic way to print listboxes, but it could also 
be a 2D array:

https://flury-software.ch/a-swiss-army-knife-for-4d/

Check out the method "Uty_PrintListBox"

Disclaimer: this is not a magic solution. It's just an other try to print what 
can be endless on screen (scroll bars) to the limited size of paper.

HTH,

Olivier

|||||| https://flury-software.ch/

-----Ursprüngliche Nachricht-----
Von: 4D_Tech <4d_tech-boun...@lists.4d.com> Im Auftrag von Piotr Chabot 
Stadhouders via 4D_Tech
Gesendet: Mittwoch, 26. September 2018 13:55
An: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Piotr Chabot Stadhouders <p.stadhoud...@timeff.com>
Betreff: RE: Printing A3 format on windows when scaling is not possible

Hi Miyako,

Thanks for your anwer.

Ok, I understand what you are saying, and in some cases I already use the SET 
PRINT OPTION command

But when I want to print a report without interaction with the user, and I want 
to print it to a certain paper size, I can do two things I guess:

[...]

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to