Home Devices

Customized Print Preview

edited September 2002 in Devices
I can not create a customized print preview with the steps in the
developer's guide:

1) Open ppPrvDlg unit in the RBuilder\Source
2) Select the panel at the top of the form (named pnlPreviewBar)

This panel not exist...

When I open the ppPrvDlg unit the Form don't contains any component. I think
that this components are created by code... (I am not sure)

Could anybody help me please
PD: I have that do a Customized Print Preview before tomorrow

Thank you for all
Eduardo

Sorry by my english...

Comments

  • edited September 2002
    Thanks for pointing this out. We changed the print preview architecture. An
    example of a custom print preview using the old school technique is located
    in the main reports demo project. RBuilder\Demos\1.Reports\dmPrvw.pas.

    To use the new architecture, whcih also includes support in the runtime
    designer preview (the new functionality you won't get with the old technique
    of replacing the preview form). You need to create a TppPreview descendent.
    Here is an example of creating one that disables the close button. If you
    could tell us how you would like to customize the preview form, we would
    certainly be willing to help you go in the right direction.

    http://www.digital-metaphors.com/tips/myCloseButtonPreviewPlugin.zip


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    I'd like to disable the FMaskPageNo type TMaskEdit, as it behaves quite
    strangly : on a one page preview I could type page no 20 and (of course)
    nothing happens, but it shouldn't be allowed as it's confusing because it
    suggests that you're looking at an actual page no 20.

    Is the only way around that deriving from TppPreview as you showed in the
    example project 'CloseButtonPreviewPlugin' ?

    thanks, Karin Clavel

  • edited September 2002
    The easiest way is to change the preview plugin is to follow the technique
    shown in the 'CloseButtonPreviewPlugin' example.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.