Page countting
Page countting
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 ?
-
- Site Admin
- Posts: 17565
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17565
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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".
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".
-
- Site Admin
- Posts: 17565
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: