Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report display getting cut off in Landscape page layout
Message
From
16/11/2023 11:21:35
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
16/11/2023 10:22:02
Sonny Tabano
Trams Printwork, Inc.
Mabalacat, Philippines
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01687231
Message ID:
01687276
Views:
45
>>>Hi to all,
>>>
>>>What causes a report displayed in landscape to get cutt-off (not showing/displaying the whole size of the page layout) on some workstation but shows complete page layout on other workstation or pc?
>>>
>>>TIA
>>>
>>>Sonny
>>
>>Try to set the printer to the right format before printing. In special Letter / DIN changes give odd results.
>>
>>****
>>
>>Thanks for the reply.
>>
>>Does the default printer installed in the computer affects the how the report preview works and displays? if it does, what's the most compatible printer driver for VFP Reports Preview?
>>
>>TIA
>
>I head a decade ago problems with DIN A4 Reports, when the default printer was set to Letter, in special in Landscape. I think it will be the other way around (Portrait for reports defined in Letter printed on DIN A4).
>
>And the problem is not for printer preview only. The report is generated on a canvas depending on the active printer and it's settings. I you try to print a label on a DIN A4 page, it will have a lot of free space on the right. A DIN A4 on a DIN A3 will have free space on the right, but will fill the page length. While a DIN A3 printed to DIN A4 will be cutt-off.
>There is an option to store the printer settings to the FRX, but in general this creates more havoc then use.
>
>Since this depends on hardware and the frx, you need to have a printer set to a format fitting. A printer with the wrong paper stock could not do this. What you can use is a PDF printer - this can emulate any format.
>You need to set the printer before running REPORT FORM.
>
>If one need to force a report to a special printer on site, one might set the report to the printer on the fly. If you need to do this, I can help.
>
>****************
>
>Does it means that a PDF printer is the safest to use as default printer?
>
>Sonny

There is no good answer.
If you set the PDF printer to an odd format, it will fail as well.
Also the default printer is something the user chooses, probably not focused on a special VFP app.

The best is to use a report fitting the environment. This could mean to have several versions of a report, or to choose the smallest common. This is, figure out the formats, and use the smallest width of those formats (common: Letter on Landscape, DIN A4 on Portrait). This will leave white empty space on the right border of the other format, but at least solves the problem. Somehow.

Or force the system to use the report you expect while printing a special report. For example, I usually print DIN A4. But some reports, on the very same machine, are DIN A3, and some are credit card sized, on a different printer, still same computer. For this I force a change of the report in front of REPORT FORM, and reset after. User can set this on a per-report base.

Off topic.
Please set the "Enable auto quote" switch in the options menu of hamburger menu in the upper right corner of this window. It helps a lot understanding the flow of messages.

Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform