class ReportViewer
An object for a report representation, navigation and export
· ReportViewer(string selector);
· void SetServiceUrl(string serviceUrl);
· List<ParameterModel> Parameters;
· ThumbnailSizeModel GetThumbnailSize();
· void SetThumbnailSize(int width, int height);
· void LoadReportParameters();
· void SetCurrentPage(int pageNumber);
· void SetPageView(PageViewBase viewModel);
· void ExportTo(string format);
· void SetPageCacheSize(int pageCountInCache);
· void SetDocumentMapControl(string selector);
· void SetThumbnailsControl(string selector);
· void SetInvisibleThumbnailCacheSize(int invisibleCacheSize);
· void GoToBookmark(string bookmark);
· void SetHyperlinkClickHandler(HyperlinkCallback hyperlinkCallback);
· void SetDocumentLoadingElement(Element indicatorElement);
· void SetPageLoadingElement(Element indicatorElement);
· ReportParametersLoadedCallback ReportParametersLoadedEvent;
· DocumentInfoLoadedCallback DocumentInfoLoadedEvent;
· ThumbnailsInfoLoadedCallback ThumbnailsInfoLoadedEvent;
· PageCallback CurrentPageChangedEvent;
· PageInfoLoadedCallback PageInfoLoadedEvent;
· DocumentMapInfoCallback DocumentMapLoadedEvent;
· DocumentMapElementClickCallback DocumentMapElementClickEvent;
· PageCallback ThumbnailClickEvent;
· void ReportParametersLoadedCallback(List<ParameterModel> parameters);
· void DocumentInfoLoadedCallback(List<ElementSizeModel> pages);
· void PageInfoLoadedCallback(int pageNumber, string pageContent);
· void ThumbnailsInfoLoadedCallback(List<string> thumbnailsLink);
· void DocumentMapInfoCallback(string documentTree);
· void PageCallback(int pageNumber);
· void HyperlinkCallback(string hyperlink);
· void DocumentMapElementClickCallback(string bookmarkName);
· void ErrorCallback(ErrorModel errorModel);
Creates the PerpetuumSoft.Reporting.WebViewer.Client.ReportViewer class instance.
selector: A selector used to get an element which will be used for a report display.
Instance of ReportViewer class.
Gets or sets a report name.
Sets a service Url
Gets a service Url
Gets or sets a parameters list
Gets a thumbnail size
PerpetuumSoft.Reporting.WebViewer.Model.ThumbnailSizeModel class (see class reference)
Sets a thumbnail size
width: thumbnail width
height: thumbnail height
Performs query to server for a document rendering and loading of document data onto the client
Performs query to server for parameters loading
Gets a number of a current page
Number of a current page
Sets a current page with number equal to "pageNumber" and displays the page
pageNumber: Current page number
Navigates to the next page
Navigates to the previous page
Navigates to the first page
Navigates to the last page
Checks if the current page is the first one
True - if the current page is the first oneFalse - if the current page is not the first one
Checks if the current page is the last one
True - if the current page is the last oneFalse - if the current page is not the last one
Sets view model for reports pages display
viewModel: Pages view model
Performs query for data about pages thumbnails from a server
Performs query for document export into the Excel formatOpens a browser window and redirects a stream from server to this window
Performs query for document export into the Pdf formatOpens a browser window and redirects a stream from server to this window
Performs query for document export into the HTML formatOpens a browser window and redirects a stream from server to this window
Performs query for document export into the RTF formatOpens a browser window and redirects a stream from server to this window
Performs query for document export into the Xps formatOpens a browser window and redirects a stream from server to this window
Performs query for document export into specified by a user formatOpens a browser window and redirects a stream from server to this window
format: A format which export should be performed into
Performs query for receiving of a document from server in the Html format for printing
Sets size of pages cache
pageCountInCache: A number of pages which will be stored in cache
Performs query for loading of bookmarks tree
Sets web page element which will be used for display of bookmarks tree
selector: An element which will be used for output of bookmarks tree
Sets web page element which will be used for display of pages thumbnails
selector: An element which will be used for output of pages thumbnails
Sets the number of thumbnails, which will be loaded before and after the visible thumbnails
invisibleCacheSize: Number of cached thumbnail
Navigates to the element with "bookmark" name
bookmark: Bookmark name
Sets a handler for hyperlink click event
hyperlinkCallback: Hyperlink click event handler
Sets web page element which will displayed during a document loading
indicatorElement: An element which displays a document loading
Sets web page element which will displayed during a document page loading
indicatorElement: An element which displays a page content loading
Event raise when an error occurs
Occurs when report parameters were received from a server
Occurs when data about a document were received form a server
Occurs when data about thumbnails were received from a server
Occurs when current page was changed
Occurs when data about a page were received from a server
Occurs when data about bookmarks tree were received from a server
Occurs when the element in bookmarks tree was clicked
Occurs when a thumbnail was clicked
The callback function which is invoked when report parameters were received from a server
parameters: Report parameters
The callback function which is invoked when data about a document were received from a server
pages: Report pages list.
The callback function which is invoked when data about a page were received from a server
pageNumber: Page number.
pageContent: Page content.
The callback function which is invoked when data about thumbnails were received from a server
thumbnailsLink: A list of link for thumbnails loading from a server
The callback function which is invoked when data about bookmarks tree were received from a server
documentTree: Bookmarks tree
The callback function which is used to inform a user about change of a page number
pageNumber: Page number
The callback function which is invoked when a user clicks a hyperlink in a report
hyperlink: Hyperlink Url
The callback function which is invoked when a user clicks an element in bookmarks tree
bookmarkName: A name of bookmark to which a user should be navigated
The callback function which is invoked when an error occurs
errorModel: Data about an error