Home Server

Bypass Explorer and print rtm report

edited April 2003 in Server
Hello,

I have several rtm files stored in a directory and am using a
TrsReportTemplateVolume to read them in and display them in an explorer over
the web. I am sending a custom parameter called myReport to the server. If
it is empty I want to show all the reports that exist under
rsReportTemplate.FileDirectory in the explorer window so they can choose
which report they want. If it is not empty I want to execute the report
they asked for and bypass the explorer window. Is this possible?

Thanks,

Bill

Comments

  • edited April 2003

    The web tier is designed around the concept of "content providers" that
    handle request for specific types of web content. There is a parameter
    called 'content' that is used to request specific types of content:

    1. web report explorer

    content="explorer"

    2. web report viewer

    content="viewer"


    If content is empty, the report explorer will be displayed.

    Based upone the above, you will need to generate an appropriate web request.
    You could either generate the request as href links that are used in come
    custom web pages that you design OR you can programmatically handle web
    request as demonstrated in the web tier custom parameters example. Below is
    an article on calling reports directly....


    ---------------------------------------------
    Tech Tips: How can I request that the webtier
    execute a specified report?
    ---------------------------------------------


    Question:
    ---------

    Without using the Web ReportExplorer, how can I request that the webtier
    execute a specified report?


    Solution:
    ---------

    The webtier processes requests for web content. These requests consists of

    1. The URL for the webtier

    example: http://127.0.0.1/rbWebPub/report.dll


    2. A parameter specifying the content type.

    example: content=viewer

    {note: content=viewer, is used to request report viewer content.}


    3. Additional parameters that are specific to the content request.

    volume=Report Forms (the volume name)
    Name=Basic\Biolife Table (the full path name to the report)
    frameset=1 (show the framset with the toolbar etc., this is required)


    Use a web browser to access the webtier demo that displays the report
    explorer.

    Notice that when you place the mouse over a report in the report explorer
    that the status bar in IE shows the url plus some params. That is the string
    required to run the report on the web tier.

    Example:
    http://127.0.0.1/rbWebPub/report.dll?content=viewer&volume=Report
    Forms

    So the parameters here are

    content=viewer (type of content is report viewer)
    volume=Report Forms (the volume name)
    Name=Basic\Biolife Table (the full path name to the report)






    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2003
    I added the following to the end of my url call and it worked great.
    ?content=viewer&volume=myList&name=myReport and it worked great.

    Thanks again.

    Bill

This discussion has been closed.