Why does Print Layout mode behave differently?
All I wanted to do was to show running totals in the page footer, never realising what I have got myself into using the reportviewer control. I knocked out the same thing in normal Windows print preview in less than a day...
OK so what's the problem? I am using the Reportviewer control in Local processing mode and supply the data and parameters in code. I have a table with an invisible row whose cells have the running totals. I access these textboxes from the page footer using ReportItems() function. View Layout displays the totals whereas Print Layout displays nothing! Why is there a difference in processing the report as this makes the whole report practically useless?
Is there any chance MS can produce an under-the-hood guide for an in-depth understanding of RS so that developers can understand its limits as well as its full capabilities? Almost all the books in the market are for beginners...
Thanks
You said the table row is "invisible".
What exactly is the setting of the table row's Visibility.Hidden property? Make sure the Hidden property is set to a constant boolean value True, rather than an expression-based value of =True.
Also, instead of setting the entire table row as hidden, you could set individual textbox values being hidden.
-- Robert
It is set to "true" and is not an expression. View mode displays the ReportItems() value (the last running total) in the page footer, however Print Layout does not print anything. Also Print Layout mode inserts page breaks after a grouping (page break at end is ticked for the group) whereas View Layout does not. The data processing appears to be different for the View and Print Layout modes and it would be great to have a consistency between the two.
Any chance of an unsupported MS internal document being released on how the processing is done? At the moment I am learning things by "Trial and Error" and it is wasting a great deal of my time and I am sure there are others out there in a similiar position to myself.
Thanks