Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Print Preview and Clipping of report

edited October 2007 in General
Hi,

I have a report which has a large horizontal width (larger than the
preview window), when this is displayed in print preview, the report is
clipped. It seems the preview displays the report based on the printer
width settings. Is there a way to preview the report based on the width
of the actual report itself.

David.

Comments

  • edited October 2007
    Hi David,

    If the Report.PreviewFormSettings.ZoomSetting property is set to
    zsWholePage, the previewer should show the entire page in the window when it
    is loaded. This is the default setting for this property. You can also use
    the zoom buttons in the toolbar at the top of the preview window to change
    how the page is viewed.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2007
    Nico,

    I tried that however due to the width of this report (I am using a
    custom paper width: 19.1), the text flows off the right handside edge of
    the report page (ie. the white page image displayed to represent the
    report in the preview) and flows into the gray report preview window.
    However even if the report window is maximized
    due to the width of this report, the report even though it spills over
    into the gray report preview window gets clipped.

    What I want to do is show the report, and to have the report page (in
    the previewer) become the same width as the custom width report, and if
    it's too width to fit in the preview window, display some scroll bars.

    David.

  • edited November 2007
    Hi David,

    We have not seent this behavior before. What are the exact dimensions of
    the paper you are printing to and which version of ReportBuilder/Delphi are
    you currently using. I will try to recreate the issue here and see if I can
    come up with a solution for you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2007
    Nico,

    I assume the report page dimensions shown in the previewer window are
    based on the currently selected printer and paper size it is using?

    If this is the case is there a way of bypassing this so the report
    page dimensions are based on the size of the actual report template,
    rather than the
    paper size?

    As for the dimensions of the actual report template:
    (These are the settings under the Page Setup for the report template):

    - Paper Size: Custom

    - Width: 19.1

    - Height: 8.5

    - Orientation: Landscape

    As for the paper size the printer was set to Letter.

    Report Builder: Version 10.0 Enterprise

    David.

  • edited November 2007
    Hi David,

    The page width and height shown in the preview window are based on the paper
    size defined in the PrinterSetup. These properties are saved down when the
    template is saved so once a template is loaded, the default dimensions are
    immediately replaced.

    Which objects are overflowing to the grey section of the preview window? If
    these are DBText objects, you need to be sure they are not taking up more
    space than they have with the autosize feature set to true.

    Do the components also get cut off when printing to paper? If you zoom in
    to the right edge of the preview, are the components still overflowing?

    In my quick testing, I was able to successfully use a 19.1 x 8.5 piece of
    paper in the preview window and all objects seemed to stay within the page
    boundaries. If you would like, you can send a small example demonstrating
    the behavior you are experiencing in .zip format to
    support@digital-metaphors.com and I'll take a look at it for you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2007
    Nico,

    When you refer to PrinterSetup are you referring to the Print menu
    option in the report designer?

    David.

  • edited November 2007
    When I refer to the PrinterSetup, I'm speaking of the TppPrinterSetup object
    that contains all the information needed to print a document to a printer.
    Many of the options in the Page Setup dialog available from the designer
    File menu update this object (such as paper size).

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2007
    Nico,

    If I have report template which I created with a width of 19.1 and
    saved this template to database and reload it from the DB when I am
    about to use it wouldn't the TppPrinterSetup.PageWidth already contain
    this width 19.1 and then would display the report correctly when
    previewed to screen?

    David.

  • edited November 2007
    Nico,

    Ignore my last post, I have worked out my problem.

    Thanks for your help.

    David

This discussion has been closed.