What event is better to get the total of page of my doc?
Posted: Thu Jan 26, 2012 3:01 pm
Hello
I have a status bar and when I open my table and the text is displayed in my DBSRichViewEdit1, I want to inform in the statusbar the current page and total pages of my doc.
I tried to put this code in several places:
afterscroll of my table
OnLoadDocument
OnEnter
But it didn't work and only work when I click on the DBSRichViewEdit1.
StatusBar1.Panels[1].Text := 'Pág: ' + IntToStr(DBSRichViewEdit1.CurrentPage) + '/' + IntToStr(DBSRichViewEdit1.PageCount)
It only display correct when I click on the DBSRICh because it is trigger the event Onenter.
But if I scroll my records, I want to inform the page total of each doc.
Where is it the better place?
Thanks
I have a status bar and when I open my table and the text is displayed in my DBSRichViewEdit1, I want to inform in the statusbar the current page and total pages of my doc.
I tried to put this code in several places:
afterscroll of my table
OnLoadDocument
OnEnter
But it didn't work and only work when I click on the DBSRichViewEdit1.
StatusBar1.Panels[1].Text := 'Pág: ' + IntToStr(DBSRichViewEdit1.CurrentPage) + '/' + IntToStr(DBSRichViewEdit1.PageCount)
It only display correct when I click on the DBSRICh because it is trigger the event Onenter.
But if I scroll my records, I want to inform the page total of each doc.
Where is it the better place?
Thanks