Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

customization on ppViewer

edited September 2002 in General
I currently using the ppViewer to have my own customized report preview
interface. i wonder how to bring out the tree viewr features on the ppViewer
such as shown on the preview throught the ppReport on Report Builder
Enterprise v.7....
or is it possible for me to have tree view in my own customized preview so
that i could see the page number on each subreport on preview ?

Comments

  • edited September 2002
    You need to create a TppOutlineViewer. Hook it up to the viewr object and
    it should work. There is code that creates it in the current preview
    classes. Search for OutlineViewer in ppPreview.pas for an example of using
    this object. You can even create a TppOutlineViewer descedent that you can
    customize.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited October 2002
    Do u mean that i have to modified the class on ppViewr class by adding in
    the ppOutline object in that class ?

  • edited October 2002
    No, I meant that there could be a viewer and an outline viewer together on a
    form. Assign the Viewer property of the outline viewer to the viewer
    component. Our default preview (TppPreview class) creates the outline viewer
    to work in conjunction with the assigned viewer component.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited October 2002
    thks . i manage to load the outline in the previewer , and i create a
    TppPage to indicate the pages. but i got a slight problem,
    i cannt see the page number when i first load the form with customised
    ppViewer ... i see the page only i load at second time .
    what i had done wrong , or i had missing something ?

  • edited October 2002
    Is the report assigned to the viewer? You should be able to read
    Report.AbsolutePageNo and Report.AbsolutePageCount to read the page number
    and count when the report is generating pages.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.