Now, you will learn how to deploy the rpx file in your web site using
ReportExpress' ActiveX viewer. As previous step, you have "myfirstreport.rpx"
which bound xml meta file.
In above example code, you'll find the ReportExpress' Viewer component
and it's synopsis.
Viewer1.Server :
Server property is the location of rpx files. You have to ommit the
“rpxFiles” directory. i.e, if your rpx file's real location is http://www.aaa.com/report/rpxFires/test.rpx,
then Viewer.Server=”http://www.aaa.com/report/”. Note that server property
end with “/” . At run time, Viewer's inet object request the rpx file
for generating report.
Viewer1.ReportLayout :
Define the rpx file's name property. ReportLayout value(string) will
be add to Server property(string). Server+ReportLayout string is complete
URL which can get the rpx files. Note: rpxFiles directory
was hidden. i.e, “Server + rpxFiles + ReportLayout”.
Viewer1.FileUrl :
After design the report using XML data control(named dc), you can set
the dc's URL and RecordSetPattern(XPath) using FileUrl and Xpath properties
at runtime. Using FileUrl, you can pass the arguments to Viewer's XML
datasource. If you specify the FileUrl, then Viewer will be reference
the XML Data as FileUrl property. If not specify the FileUrl, then Viewer
will be reference the dc's FileUrl at design time.
Viewer1.RunViewer() :
This method will be generate report on the client-side ReportExpress
viewer. Also you can get the information of printing status using Successful()
method.