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

PageDisplay

edited June 2012 in General
Hello,

I'm not using the standard PreviewForm, but a own PreviewForm. Now I
want to implement the new features of PageDisplay. So I'm setting some
buttons on the form and call for example :

FPreview.Viewer.PageDisplay := pdContinuous;

But nothing happens. If I'm checking with debugger the PageDisplay
property is still set to pdSingle.

Is there something else I have to do that it works? Is there somewhere
an example how I can implement these features?

Best wishes
Bernhard

Comments

  • edited June 2012
    Hi Bernhard,

    If you are using a preview, you will want to set the PageDisplay
    property of the Report.PreviewFormSettings instead of the viewer directly.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2012
    Hi Nico,

    I've tried this, too. In this case I see with debugger that
    Report.PreviewFormSettings.PageDisplay is indeed pdContinuous. But on
    the screen nothing happens.

    Is there something else I have to do, like a refresh or something else?

    Best wishes
    Bernhard


    Am 28.06.2012 16:43, schrieb Nico Cizik (Digital Metaphors):
  • edited June 2012
    Hi Bernhard,

    There is nothing else you should have to do. If you try this with the
    built-in previewer and a simple report, do you still get the same behavior?

    The only other item I can think of is that perhaps you are loading
    templates in which case, the property needs to be set after the template
    is loaded.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2013
    Hello,

    I am also trying to implement the PageDisplay property in my custom made
    Print preview form.

    Setting PageDisplay doesn't do anything in my case, either.

    I am indeed loading templates, too.

    I have tried setting the PageDisplay property right after the template
    has been loaded. It DOES work there.

    But this is no good. Once I have the template loaded, I need the end
    user to be able to change the PageDisplay property - just as it is in
    the built in Preview form, where it works just fine.

    Obviously I need to call something else after setting PageDisplay.

    What is it?

    Thanks.

    -- Dimitar

    ?? 29.06.2012 16:55, Nico Cizik (Digital Metaphors) ??????:



    --

    ????????,


    ??????? ????????

    ?????????

    ???????? ????

    http://www.selmatic.com | skype:
    selmatic

    ???????
    400
    3 | ??. ????????? ???? 176

    ????????? ?????? ????? | ??. 3

    ???. 032/ 390 220 | 0896/ 88 77 07


  • edited December 2013
    Hi Dimitar,

    If you take a look at the TppPreview.PerformPreviewAction routine, you
    will see exactly what is executed when a button is pressed in the
    default preview.

    I suggest you trace through this code with the default preview and your
    custom preview to find the differences. My initial guess is that the
    ScrollableScreenDevice is nil meaning that the SinglePageOnly property
    is set to True.

    Best Regards,

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