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

Multiple Page Views

edited February 2005 in General
Hello, My current version of Report Builder (6.03) does not support
this from what I can tell.

Does Report Builder support Multiple page views?

IE: show two full pages on the screen like in the Windows
Word program?

I have a customer who has requested this.

TIA

Comments

  • edited February 2005
    If you look at the demos program you'll notice a "One page preview" button.
    Clicking on that button changes the caption to "Two page preview". Just
    follow the code tied to that button and you can do what you want.



  • edited February 2005
    thank you I will check into that
  • edited February 2005
    do you know which demo?
    there are 7 demo folders.

    TIA

  • edited February 2005
    Hi Joey,

    Preston meant to take a look at the actual Demo application. There is a
    button at the bottom right that allows you to switch between a two page
    preview and a one page. You can see the difference by clicking the go
    button. See the dmPrvw.pas file for the source to this part of the demo.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2005
    ok I looked at the code, all is very confusing

    i understand i need 2 viewers, but how do i tell the
    TppReport to use the TppViewer of my choice

    then demo references a bunch of lforms and whole bunch of stuff
    do I need to create a form similar to dmUtil and dmPrvw?

    this is what we use right now

    lets use my current project

    I have a TppReport called rbQuote with the appropiate
    TppDBPipeline and a TppViewer with the default name

    procedure TQR.rbQuotePreviewFormCreate (Sender: TObject);
    begin
    rbQuote.PreviewForm.WindowState := wsMaximized;
    TppView(rbQuote.PreviewFrom.Viewer).ZoomSetting := zsPageWidth;
    end;

    TIA
  • edited February 2005
    Nevermind, I figured it out this morning

    Thanks All
  • edited March 2005
    Got another problem

    I got the code working

    now I have problem

    when i run the report the first time my final totals are all doubled.

    i rerun the same report the totals are correct.

    every report after that is correct

    shut program down and restart it
    the first run of the report gets doubled final totals.

    any ideas?

    TIA
  • edited March 2005
    It only happens on the view.

    it prints to printer properly on the first try
  • edited March 2005
    if nothing else works

    how can i tell the program to abort a print request
    after that they click the print button on the default viewer?

    say rbquote.print;

    the default viewer shows up

    when they click the icon with the printer on it
    how do I tell the program to abort printing based on
    some passed in parameter?

    TIA
  • edited March 2005
    Hi Joey,

    You can use the Report.BeforePrint event to cancel the report if you want.
    You will need to check the device to be sure you are cancelling a report
    that is being sent to the printer.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2005
    got an example of that?
  • edited March 2005
    if Default ppviewer is already up

    when the print button is clicked, how can
    i prevent the printer selection dialog box from
    showing?

    TIA
  • edited March 2005
    Set the TppReport.ShowPrintDialog property to False.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.