Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Borders are not correcto at preview (Read 191 times)
Alvaro68
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Jan 10th, 2025
Borders are not correcto at preview
Jan 10th, 2025 at 10:26pm
Print Post  
I am using "Report" to design a labels printing reporton letter size paper; there is a "DataRange" with location 8mm, 9mm but in "ReportViewer" borders are not correct. How can I fix it? see atached images.
  

Borders.docx ( 78 KB | 16 Downloads )
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3343
Joined: Oct 19th, 2005
Re: Borders are not correcto at preview
Reply #1 - Jan 11th, 2025 at 12:44pm
Print Post  
Hi,

Note the Margins(15) assignment in MainForm class of that example. You could set margins to non-uniform horizontal and vertical values as well, or set zero ones. Generally report coordinates are relative to the printable area of a page, and there are non-printable margins you could change via printer's settings. The on-screen ReportViewer control just simulates these margins with whatever property size you set.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Alvaro68
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Jan 10th, 2025
Re: Borders are not correcto at preview
Reply #2 - Jan 11th, 2025 at 5:31pm
Print Post  
Hi,

I was able to make it work but only on first page.
The first page is correct, however, from the second page onwards they are not correct. See attached file.
How can I make all pages start printing at same margins?

Thanks in advance.
  

Borders_001.docx ( 68 KB | 14 Downloads )
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3343
Joined: Oct 19th, 2005
Re: Borders are not correcto at preview
Reply #3 - Jan 13th, 2025 at 8:05am
Print Post  
Hi,

What you design in the report editor is a virtual page, that possibly splits into multiple actual pages when the report runs. That also entails the longer report items overflowing into next physical pages, starting from the top of printable area (i.e. after margin.Top).

So you could add say a title and a longer text description on top of a virtual page, with data range starting at middle - these elements would appear only on first actual page, and the overflowing part of data range does not start from middle of second actual page but from top of it. I imagine what you want can be achieved in couple of ways:

- keep zero offset of the data range element and define these border sizes using only the Margin property. If you'd like to use the report designer control to let your users create custom labels, I imagine you could set the offset to zero programmatically, copying its values to margins instead (to respective ReportViewer and ReportPrinter properties)

- or enforce a single actual page per virtual page, setting just enough labels in the data source to fit the letter paper size. Then you could print more labels by adding copies of the virtual page to Report.Pages.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Alvaro68
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Jan 10th, 2025
Re: Borders are not correcto at preview
Reply #4 - yesterday at 2:18am
Print Post  
Hi,
I used de Margin property and it now works great, thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint