Navigation Buttons
How to block the buttons (First, Prior, Next and Last Page) on Preview Page
Screen ?
I?m use Report Builder 4.3 for Delphi 3 !
Thanks a Lot !
****************************************************************************
***************************************
Alison Ramos Lacerda
Departamento de Neg?cios / Divis?o de Suporte a Clientes / Departamento de
Desenvolvimento
DoubleSoft An?lise, Projetos e Sistemas Informatizados S/C Ltda.
FONE : +55 11 4538-1872
"IMPLEMENTANDO SOLU??ES ?S SUAS NECESSIDADES"
Visite nosso Site: www.doublesoft.com.br
Screen ?
I?m use Report Builder 4.3 for Delphi 3 !
Thanks a Lot !
****************************************************************************
***************************************
Alison Ramos Lacerda
Departamento de Neg?cios / Divis?o de Suporte a Clientes / Departamento de
Desenvolvimento
DoubleSoft An?lise, Projetos e Sistemas Informatizados S/C Ltda.
FONE : +55 11 4538-1872
"IMPLEMENTANDO SOLU??ES ?S SUAS NECESSIDADES"
Visite nosso Site: www.doublesoft.com.br
This discussion has been closed.
Comments
Below is an article explaining the replacable dialog archetecture of
ReportBuilder. You need to create a Custom Preview window to your
specifications to disable the buttons you do not want to use. Follow the
link below for a good example of customizing the Preview. Notice how the
First, Prior, Next, and Last Page buttons have their 'Enabled' properties
set to False.
http://www.digital-metaphors.com/tips/CustomPreview.zip
------------------------------------------------------------
Tech Tip: Replacing Built-in Dialogs/Forms in ReportBuilder
------------------------------------------------------------
ReportBuilder has an open architecture for replacing any of the built-in
dialogs. You can replace any of the built-in dialogs by creating a new form
that inherits from an abstract ancestor and then registering it as the new
built-in dialog.
For example to replace ReportBuilder's preview dialog you could
1. Create a new Preview dialog by renaming ReportBuilder's default preview
dialog, then doing a SaveAs to save it under another unit name.
The default dialog resides in RBuilder\Source\ppPrvDlg.pas and the form is
called ppPreviewDialog. You should assign your form a unique name, for
example, myPreviewDlg, and save the unit to another name. Also save the unit
to the directory where your other forms are stored (not RBuilder\Source).
2. Make desired changes.
You will notice that the preview dialog inherits from an ancestor
TppCustomPreviewDialog - this ancestor resides in ppForms.pas (where all the
abstract ancestor forms for ReportBuilder are defined).
3. Register the new form.
Declare an initializtion section at the bottom of the unit:
initialization
ppRegisterForm(TppCustomPreviewer, TmyPreviewDlg);
4. Add the new unit to your project and compile.
Now your preview dialog should be automatically created and destroyed by
ReportBuilder. The two page preview dialog in the
RBuilder\Demos\Reports\Demo.dpro was created this same way. The only
difference is the ppRegisterForm call is in then OnClick event of the
button.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com