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

nicocizik

About

Username
nicocizik
Joined
Visits
2,418
Last Active
Roles
Administrator
Company Name
Digital Metaphors Corporation

Comments

  • Hi Michael,

    Looking at your code below I notice a couple problems. The Device Mode is a
    Windows API structure that contains many separate enteries that control the
    printer. You are setting the entire structure to some integer …
  • Hi Michael,

    Don't worry, your English is much better than many Americans I know :).
    ReportBuilder accesses th…
  • Hi Michael,

    How are you telling the report to print in grayscale? ReportBuilder does
    not have any logic inside it that controls this feature of a printer. This
    may be an issue with either your printer driver or the default set…
  • Benson,

    I'm unsure why you would only be seeing this behavior. Please put together
    a simple example that demonstrates this behavior and and send it to
    support@digital-metaphors.com and I'll take a look at it for you.

  • Hi Fred,

    Your going to want to use Section Style Subreports to create this type of
    report. Each section can be connected to a different dataset to collect
    data. This type of subreport is designed to act like an independent rep…
  • Hi Arturo,

    Sorry, it is possible to change the paper size, but there is no built in
    functionality that actually shrinks or moves the report components to fit on
    a smaller paper size than the one it was created on. This however …
  • Hi Arturo,

    I'm a bit unclear about what you mean by reducing the "Scale" of the report,
    but if you would like to view the report as a different size, you need to
    adjust the TppReport.PreviewFormSettings property. From here you …
  • Hi Jim,

    I am unclear about how you are loading these .rtm files. Are you using the
    server edition of ReportBuilder or are you simply loading .rtm files from
    the internet stored on a separate server (ftp perhaps)? If you are n…
  • Hi Charley,

    As a test, try commenting out all your event code, and re-running the
    report. If this solves the problem, periodically begin adding the code back
    to isolate the problem. Usually when the printed output does not mat…
  • Hi Santy,

    While looping through each report object, you can use the 'is' operator to
    check if the current object is a TppSubreport... For instance:

    if (lObject is TppSubReport) then
    lChildReport := TppSubReport(lOb…
  • Hi Don,

    The easiest way around this issue would be to create the query using DADE
    ("data" tab of the designer) so the query is local to each template you
    load. There is an IBO plugin available to allow you to access your data a…
  • >I
    can

    This is correct. The only way to keep event code local to a report template
    (.rtm file) is by using RAP code. Otherwise you would need to create a
    separate report object for each report in your project.
  • Hi Vincent,

    I just sent you an example application that produces a Report Emulation Text
    file with a dynamic detai band and a stretching memo inside a region.

    --
  • Hi Alex,

    Yes, this is similar to how ReportBuilder checks for no data.

    if (DataPipeline <> nil) and ((ppdaNoRecords in DataPipeline.State) or
    (DataPipeline.BOF and DataPipeline.EOF))

    Above is the exact cod…
  • Hi Alex,

    Sorry, I should have picked this up from your original post. It is not
    possible to load a template after Report.Print has already been called. To
    work around this issue, you will need to either check for no data befor…
  • Hi Alexander,

    If you are loading templates, you may be loosing your event handlers. In my
    testing, the OnNoData event seems to fire correctly. See the following
    article for information on loosing event handlers when using repo…
  • Hello,

    There is only one event that is guarenteed to fire only once per traversal
    and that is the TppVariable.OnCalc event. You could possibly place an
    invisible TppVariable inside the band you need and use its OnCalc event to<…
  • Hi Moro,

    You need to add the ppTypes unit to your "uses" clause.

    --
  • Hi Al,

    You can find the number of subitems inside a main menu item by using the
    TMenuItem.Count property. For instance...

    if ppDesigner1.Menu.Items[0].Count >= 21 then ...


    --
  • Hi,

    In my testing, by connecting a simple dataset to a crosstab and checking the
    aText value of the OnGetValueText event seemed to return the correct values
    for the cells in my crosstab. Be sure each cell in your crosstab conta…
  • Hi Pavel,

    This is not a known issue with ReportBuilder. Be sure you are using the
    latest version of the product, 7.03. You may also want to try to reinstall
    as this may be a corrupt installation.

    --
  • Hi Stef,

    Try calling ppReport1.Reset at the beginning of the ButtonClick event. This
    should solve the problem.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    in Skipping to a specified label Comment by nicocizik November 2005
  • Hi Bob,

    You're going to want to set the TppRegion.Pen.Style property to psClear.
    This is a published property so it can be set in the Delphi Object Inspector
    at design time.

    --
  • Hi Bob,

    You might try placing a TppRegion inside the detail band with its
    ParentHeight and ParentWidth properties set to True. Then your users will
    be forced to place their components in the region and you can just toggle
  • Hi Bob,

    Sorry for the delay. I went ahead and created close to the exact example
    using RAP and Report Parameters for you. Hope this helps.

  • Hi Bob,

    The easiest solution would be to code something similar to the SkipLabels
    example in RAP for each template that needs this functionality. See the
    article below for more information why this is happening.

    ----…
  • It should be the one just above the "Force Justify" and just below the "Send
    To Back" options. Popup menu item 3.

    --
  • Hi Nicola,

    It looks like you may have the CharWrap option set to True. Try right
    clicking over the memo and be sure that the CharWrap option is un-checked.
    This will allow the memo to wrap only full words rather than individual…
  • Hi Mike,

    Sorry, for some reason my news reader missed your original message. At
    run-time you can programmatically edit and manipulate the formatted text by
    using the Paragraph, SelAttributes, SelStart, SelLength, and SelText
  • Hi Tony,

    I took a look at the installation scripts and it looks like it will look in
    the HKEY_LOCAL_MACHINE for the instalation directory of Delphi 7, then using
    the value, look for the D7.ohl file in the {Delphi}\Help\... direc…