Hi Olivier, The example in the docs for the command PAGE SETUP is indeed kind of what I am talking about. But instead of having different forms with a scaling setting I have different page setup forms with a “paper size” setting (A3 portrait, A3 landscape), because also forms with a scaling setting (set on printer 1) have no effect when used with printer 2 when this printer is unable to scale
I know I can get the paper width / height and with some math move / resize objects on the form However, we already have tens of output forms, and unfortunately not only with a few columns, but with a lot of fields on different parts of the form Moving around these fields is no option for me. My boss doesn’t understand why this scaling is a problem, because as he sees it “there are a lot of applications where printing a lot of small sized info on an A4 paper is no big deal at all” Gr, Piotr 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 Van: Piotr Chabot Stadhouders Verzonden: woensdag 26 september 2018 13:55 Aan: 4D iNug Technical <4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>> Onderwerp: 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: 1. Use SET PRINT OPTION with Paper option and value1=”A3”. Does using paper name = “A3” always work? Or do I have to get the paper names first and find some paper name with A3 in it? 2. Use SET PRINT OPTION with a custom width and height. Does this always work, for every printer? Gr, Piotr Van: Piotr Chabot Stadhouders Verzonden: woensdag 26 september 2018 13:46 Aan: Piotr Chabot Stadhouders <p.stadhoud...@timeff.com<mailto:p.stadhoud...@timeff.com>> Onderwerp: RE: Printing A3 format on windows when scaling is not possible there should be no reason to use PAGE SETUP, although there is nothing wrong about using it. it's just a convenient shorthand that dates back to the times when 4D had far fewer commands. http://doc.4d.com/4Dv16/4D/16.2/Print-settings-to-BLOB.301-3432852.en.html http://doc.4d.com/4Dv16/4D/16.4/SET-PRINT-OPTION.301-3978064.en.html Van: Piotr Chabot Stadhouders Verzonden: woensdag 26 september 2018 11:51 Aan: 4D iNug Technical <4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>> Onderwerp: Printing A3 format on windows when scaling is not possible Hi all, I am working for over 20 years with 4D now, but still I am having troubles with printing reports on Windows / OSX On forehand I want to say it sure can be me that is the problem😊 The most problematic is when I want to print a lot on a report and scaling comes in to play Because scaling on a lot of printers is not possible, and I don’t know on forehand to what printer is printed, I cannot use scaling in my reports Because almost all of our customers print to PDF, the best solution I found is : * To create a form just to use for page setup. * This form has an A3 page setup, which is kind of similar of scaling 70% * Print to PDF * Let Acrobat Reader do the scaling, and let the user print scaled to A4 on their printer However, now and then, after a couple of months/years, also this A3 page setup gets “corrupted” i.e. when checking the page setup on the form it isn’t A3 anymore but is has been reset to A4 So…. Does anybody know of an ultimate solution for this problem, and works multi platform? Gr, Piotr ********************************************************************** 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 **********************************************************************