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

nardmoseley

About

Username
nardmoseley
Joined
Visits
8,057
Last Active
Roles
Administrator

Comments

  • Hi Ken,

    Have not heard of this before.

    Do TOpenDialog/TSaveDialog work outside of RB? For example if you create a
    trivial project with a Form and the dialogs, do they work?

    Do they work at Delphi design-time fr…
  • Hi Ken,

    My recollection of OnCustomOpenDoc was not accurate. That event enables
    custom template loading, but not the dialog. It fires after the dialog.

    Here's another approach...

    Assign a custom event-handler t…
  • Hi Ken,

    There is a Report.Template.OnCreateDialog event that fires after the dialog
    is created. You can type cast the aDialog parameter and set its properties.

    Example:

    ppReport1.Template.OnCreateDialog := ehRe…
  • Hi Bernd,

    A couple of options:

    - use SystemVariable set to vtSearchDesc

    - use a Label and implement the OnPrint event like this

    myLabel.Caption := 'Report period: ' + Report.AutoSearchFields[0].Value + ' …
  • Hi Ian,

    Try this..

    - add Variable to GroupHeader/Footer and set DataType to dtInger
    - right mouse over Variable and choose Timing.. to display the Timing
    dialog. Select Calculate On GroupStart and use the combo box …
  • Hi Smokoveck,

    I recommend emailing the Delphi Localization Tool vendors such as
    Multilizer, Sisulizer. I think one of them may have a solution for
    localizing RB templates (.rtm, database).



    Best regards,<…

  • This usually indicates that RB cannot find any installed printer drivers.
    Make sure that the Windows user account that the application is running
    under has access rights to one or more valid printer drivers.




  • It is TExtraDevices that is auto-numbering the file names. Look for an
    option in TExtraDevices that will turn this off, trace the source code,
    and/or contact support@waler.com.

    --
    Nard Moseley
    Digital Metaphors

  • myReport.DataPipeline := nil;
    myReport.AutoStop := False;

    Then if you have a fixed height detail band, you can calc the number of
    detail bands that fit on each page:

    myReport.PageLimit := 50 DIV DetailBandsPerPa…

  • Sorry, but we do not have any examples of implementing RTL text.

    The code to the PrinterDevice is located in ppPrnDev.pas and the
    ScreenDevice is located in ppViewr.pas. However, in addition to those units,
    there is also r…

  • Try the Developer Express newsgroups.

    These newsgroups are for ReportBuilder....


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphor…

  • The options are as you describe. Use the PrinterDevice to chain multiple
    reports - this does not support preview. Or use a main report that contains
    multiple section style subreports in the detail band - this does support
    previe…

  • In the Report.StartPage event, try implementing some code like this....

    procedure TForm1.ppReport1StartPage(Sender: TObject);
    var
    liCopies: Integer;
    begin
    if ppReport1.AbsolutePageNo = 1 then
    liCopie…

  • I researched this by examining the source code. Try using
    Device.Publisher.Owner to access a reference to the Producer.

    uses
    ppProd, ppDevice;

    var
    lProducer: TppProducer;

    begin
    lProduc…

  • 1. One option which would not require two viewers would be to create a drill
    down report. When the user clicks on data, a subreport can expand to show
    more detail. See the Developers Guide tutorials for an example and check out

  • Set Report.AllowPrintToFile to True, prior to calling Report.Print. (You can
    set it either programmatically or via the Object Inspector at design-time.).




    --

    Nard Moseley
    Digital Metaphors Corp…

  • -----------------------------------------------
    Article: Printing to Dot Matrix Printers
    -----------------------------------------------

    Dot matrix printers are natively line and character based. Most dot matrix
    print…

  • The code that I showed in the prior post will work because it is calling
    Report.Print. When using PrintToDevices the developer is responsible for
    managing much more of the details. You have to write the code to create the
    Printe…

  • The Report.PrinterSetup.DocumentName property is used to specify the
    document name that appears in the windows print queue. Set this property
    prior to calling Report.Print.

    example:

    myReport.PrinterSetup.Docum…


  • Determines whether the drawn directly to the printer canvas.

    For meta files setting DirectDraw to True will likely work better, for bmp
    files setting it to False will work better. The bmp files are converted to a
    DIB…

  • Options:

    1. Use the OnPrintDialogClose event to check Report.PrintDialog.ModalResult.
    Example:

    if myReport.PrintDialog.ModalResult = mrOK then
    {report about to print}

    2. Use Report.AfterPrint event…


  • 1. As a test try commenting out all event-handler code that is associated
    with the report. Make sure that you do not have any code that manipulates
    the dataset in any manner while the report is generating.

    2. Try dow…

  • Thanks for the feedback concerning the PreviewFormSettings. Perhaps we
    should add the Width and Height properties.

    If you load reports from .rtm files then it is possible that the
    event-handlers are not re-attached when th…

  • 1. Try using the Report.OnPrintDialogClose event to determine what printer
    was chosen. Here is an example:

    uses
    ppPrintr;

    procedure TForm1.ppReport1PrintDialogClose(Sender: TObject);
    var lPrinter: TppPrin…

  • A report layout is designed for a specific paper size as specified by the
    Report.PrinterSetup properties. These properties are applied to the printer
    when the report prints.

    The article below explains how to get the Window…
  • -------------------------------------------------
    Tech Tip: Configuring Printer Specific Options
    -------------------------------------------------

    The Report.PrinterSetup properties can be used to set the properties that
    ar…
  • ----------------------------------------------------
    Article: Printing to Continuous Paper
    ----------------------------------------------------

    1. Layout

    For continuous printing (for example a receipt) use Title/Summa…

  • Support for the Default bin is not very well supported by printer drivers,
    but RB does its best to try to support it.

    1. Try downloading a trial version of RB 7 and perform the same test. I
    think support for the default bi…

  • I can compile the two packages here. What error are you encountering?


    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



  • Simplest way to print multiple copies is to set the
    Report.PrinterSetup.Copies property to the number of copies that want to
    generate. This will print as a single print job - which is probably
    preferrable unless you want to prin…