Visual Studio Developer Center > Visual Studio Forums > Visual Studio Report Controls > How do I find out information about what is currently displayed on a client reportviewer page at runtime?
Ask a questionAsk a question
 

QuestionHow do I find out information about what is currently displayed on a client reportviewer page at runtime?

  • Friday, November 06, 2009 8:57 PMWarren_K Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I know the Page Number that is currently being displayed can easily be determined at runtime as the user navigates through the pages in a client report (I am using a WinForms application).  However, depending on the current DisplayMode (Normal versus PrintLayout) the numbering of pages can be different as PrintLayout will take into account the physical dimensions of a page.  So I can't really tell too much information from just the page number.  I need to know some information about what is contained in the current page that has been rendered.  In other words what I need to do is find out "where am I in this report" perhaps by finding the value in a textbox in the report.   I know if I've used the document map to navigate I can find this sort of information out by using Reflection to get the text selected in the current node.  However if I'm using Page Navigation, the node in the document map is not updated and so I need some other way of determining where I am in the report (or underlying dataset).  Can anyone help me out?  Thanks in advance!