Print a field in a fixed position

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Print a field in a fixed position

Post by Fabio Pagano »

I need to design a report where the fields must always be printed in the same position, defined by Italian Postal Service specifications.

Example, the "amount to pay" must always be printed at 24.5 centimeters from sheet left border (the page is printed in horizontal). This must be independent from page margins. I need to distribute this design to my customers (they have different printers with different print margins) without further intervention on the design.

How can i do this?

Thanks.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Print a field in a fixed position

Post by Edward »

In that case main task is the following: it is necessary to design a report with margins which exceeds physical margins of all printers, on which these reports will be printed.
If margins in the report is bigger than minimal allowed by the printer, then report will be printed exactly as it designed. But if the margins not enough, then information from the report will be truncated during the print. To find out the printer margins is very simple. Just set the report margins to zero and fill the page with any color. After printing the white space will show the limitation from the printer (but sometimes printer driver also can control these minimum margins of the printer).

P.S. But what is written above is not true for the mode of the Page when StretchToPrintArea is set in true. In that mode all possible area for printing will be used. Result of printing depends on minimal possible margins of the printer and of course is different for printers of different models and manufacturers. The report engine makes 'scaling' of the page components for the whole page. So two different reports with different margins in 1 cm and in 5 cm will have been printed on the same area of the paper sheet when StretchToPrintArea is true.

Thank you.
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Print a field in a fixed position

Post by Fabio Pagano »

Thanks for clarifying. Actually i'm following your guidelines and i'm having the expected results (i'm designing with a page margin 0,70 cm), luckily i don't need to use stretchtoprintarea.

Thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Print a field in a fixed position

Post by Edward »

Please let us know if any help is required.

Thank you.
Post Reply