Fit to page

I'm new user of FastReport .net and I think it's amazing product.

I have one question:

If I create reports that fits to A4 page for laser printer and I try to print it on inkjet printer which has larger margins, it can't fit to page, can I automatically instruct report to fit on that page, and if I can, how to do it?

Thanks in advance!

Comments

  • edited January 2010
    Hello,

    FastReport has no control over printable area of a printer. You should set the desired margins in the "Page Settings" dialog. If you set too small margins, the text may get clipped on some printers. So you have to use large enough margins if you want to print a report on different printers.
  • edited March 2011
    instead of starting a new question i'll just add a tiny question top this one:

    is there a way to get/set the page settings without the dialog? in short i need to detect the page margins within my code at runtime.

    thank you.


    EDIT:

    i just found the solution:

    my mistake was using a variable declared as a "PageBase" - i should have used "ReportPage"
    Dim page As FastReport.ReportPage
    page.RightMargin = X
    

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.