Page 1 of 1
Page countting
Posted: Fri Mar 22, 2013 12:44 pm
by cedo
Is there a way to force the page counter to reset. Suppose I have two documents, which I show in preview mode all together. These documents must have a separate page numbers. How can I do this ?
Posted: Fri Mar 22, 2013 1:47 pm
by Sergey Tkachenko
Do you ask about ScaleRichView?
Or TRichViewEdit printed by RichViewActions?
Or may be something else?
Posted: Fri Mar 22, 2013 1:53 pm
by cedo
TRichViewEdit printed by RichViewActions
Posted: Sat Mar 23, 2013 7:19 am
by Sergey Tkachenko
RVAControlPanel.FirstPageNumber
Posted: Mon Mar 25, 2013 9:20 am
by cedo
Suppose I have two documents merged in one document. The documents are separated by tag "pagebreak". I found the following part of the program code (RVXMLRoutines.pas):
function LoadRVDataFromXML(RVData: TCustomRVData; Node: TXMLTag;
Bullets: TImgListList; Default: PRichViewXMLStyle;
var InsertPosition: Integer;
PaletteMode: TRVPaletteAction; RVPalette: HPalette;
RVLogPalette: PLogPalette; PrevCP: TRVCPInfo;
StyleMap, ParaMap, ListMap: TRVIntegerList;
OnUnknownTag: TRVXMLUnknownTagEvent;
OnLoadControl: TRVXMLLoadControlEvent;
RVStyle: TRVStyle;
EditMode: Boolean;
var FirstTime, FullReformat: Boolean;
var NonFirstItemsAdded: Integer;
TagsArePChars: Boolean): Boolean;
...
else if S = 'pagebreak' then begin
PageBreak := True;
Continue;
end
...
if PageBreak then
RVData.GetItem(Position-1).PageBreakBefore := True;
PageBreak := False;
I would like to know what I should change to reset the page counter after tag "pagebreak".
Posted: Mon Mar 25, 2013 1:26 pm
by cedo
What do you think about attribute "resetpagecounter" for tag "pagebreak" ?
Posted: Tue Mar 26, 2013 9:28 am
by Sergey Tkachenko
No, we do not plan adding such parameters for a page break.
In future, we plan to implement section breaks, with each section having its own page numbering and layout information.
But it is not planned for near future, sorry.