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

Error when executing web report.

edited April 2011 in Server
Hi!

http://localhost:82/WebReport.dll?content=viewer&volume=Rapportutforsker&name=Direkte utskrifter\Bekreftelse&filename=bekr2.pdf&path=c:\PDFStore\&silent=true&newSearch=T&asg0f0se=66607&asg0f1sa=false

When i thought all problems were solved on the webtier this error pops up
when this url is entered. " A component named ppAutoSearchDialog already
exists". What can i do in webtier to prevent this?

Best regards,
Terje

Comments

  • edited April 2011


    Try a simple test using a ClientReport object to run the same report. Does
    that work?

    Try running the report server application under the Delphi debugger. If an
    error occurs examine the call stack.

    Try running the WebTier as a web debugger application. If an error occurs
    examine the call stack.

    Have never heard of that error.


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2011

    Yes it works.

    This works. It creates a pdf and no preview.

    Works with no error.

    On my computer:
    1. I use the webtier as shown in previous mail "Webtier hang". When i run a
    report with no parameters it works well with preview or without
    preview generating a pdf.

    2. When i run a report with parameters it works in preview but not without
    preview. It creates a pdf with no content
    that is not possible to open. And nothing else happens until a timeout
    occurs. Profiler show that no query is ever run from the report.

    On the server it is intended to run.
    1. Same.
    2.When i run a report with parameters it works in preview but not without
    preview. When i attempt 'silent = true' and the ClientReport is used it
    generates the before mentioned error " A component named ppAutoSearchDialog
    already exists".

    In my 15 years of delphi programming i have never experienced this kind of
    trouble getting something to work. What can i do now?

    Regards, Terje
  • edited April 2011


    On my computer:
    1. I use the webtier as shown in previous mail "Webtier hang". When i run a
    report with no parameters it works well with preview or without
    preview generating a pdf.


    I don't understand. Are you running this as a standard app? As a web
    debugger app?

    Run this in the web app debugger, what happens?


    I don't understand this statement.


    I don't understand this statement.


    When you run this in the web app debugger what happens?

    Does the report contain AutoSearch parameters?

    You might want to modify one of the demos included with RB to recreate the
    error. Then zip it up and send it to support@

    Verbally trying to explain an issue often does not lead to the solution.
    Either the customer leaves out important details or the tech support
    engineer does not understand. It also prevents the use of tools like the
    debugger. That is why we ask for an example that we can examine and run
    here.


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2011
    Hi Nard,

    Thanks for your patience. I have got it running now with a simple report
    with one parameter. The report that fails with the message "a component
    named ppAutoSearchDialog already exists" has two subreports. Can this be the
    problem? Where and when is the component ppAutoSearchDialog created? Is
    there a way i can "rename" this in code?

    Regards,
    Terje
  • edited April 2011
    The ppAutoSearchDialog refers to the AutoSearchDialog that is displayed by
    the Report and ClientReport. For a WebTier application, it should never be
    created.

    A good debugging technique is to create the simplest report and then
    incrementally add complexity, testing at each small increment, until you
    find the cause of the issue.


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.