Welcome to Sign in | Help

Re: Reporting Services - cum pot pune numarul paginii in body-ul unui raport

  •  02-05-2009, 2:04 PM

    Re: Reporting Services - cum pot pune numarul paginii in body-ul unui raport

    Am gasit o rezolvare facuta in felul urmator, poate va ajuta :

    Am pus in codul proiectului :

    Private Shared _NrPag as integer

    Function AddValue(ByVal value As Object) As Object
       _NrPag=value
     Return _NrPag
    End Function

    Function GetNoOfPages() As Object
     return _NRPAG
    End Function

    Am facut un table cu o sursa de date care se leaga la AdventureWorks prin DataSet-ul "SELECT     ProductID,Name FROM Production.Product"

    In PageFooter am pus un TextBox cu urmatoarea expresie :

    =Code.AddValue(Globals!TotalPages)

    (adica populeaza variabila _NrPag cu numarul total de pagini)

    Apoi in body , in corpul tabelului am pus o coloana al carei textbox va avea continutul

    =Code.GetNoOfPages()

    Astfel ca se va afisa aici ce obtine de jos din footer; chestia e ca nu apare din prima (initial e 0) insa daca te plimbi prin raport lucrurile merg.


     


    Gheorghe Ciubuc,SQL Server Influencer, MCP(SQL 2000), MCTS (SQL Server 2005) , OCA(Oracle 9i), Sybase(Brainbench)
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems